The KBS_ARTICLE_SLUG constant enables you to change the post type slug of the article post type.

By default the slug is article which means that URLs will look like http://yoursite.com/articles/ for the article archive and http://yoursite.com/articles/article-name for individual articles but by defining this constant within your theme’s functions.php file, or any custom plugin file, you can update the slug to be anything you want.

Example

By adding the following line into our themes functions.php file or any plugin, we can change our slug from articles to documents

<?php define( 'KBS_ARTICLE_SLUG', 'documents' ); ?>

You need to re-save your permalink structure in order for the change to take effect. Go to Settings -> Permalinks and click Save Changes.

URLs will now look like http://yoursite.com/documents/ for the article archive and http://yoursite.com/documents/article-name for individual articles.


Was this article helpful?

KBS_ARTICLE_SLUG

The KBS_ARTICLE_SLUG constant enables you to change the post type slug of the article post type. By default the slug is article which means that URLs will look like http://yoursite.com/articles/ for the article archive and http://yoursite.com/articles/article-name for individual articles but by defining this constant within your theme's functions.php file, or any custom plugin file, you can update the slug to be…
KB Article rating: 5.0 based on 1 ratings
KBS is now a LOGON product. For new and existing support requests, please send us an email.
If you have an open support ticket, please email us directly to follow up.
This is default text for notification bar