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.
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?
We're working hard to ensure we provide you with useful and relevant documentation to help you get the most out of KB Support.
Please take a moment to let us know if you found this article helpful.