Print

Categories List Shortcode

The shortcode shows a list of top categories, all categories or chosen categories.

WordPress Shortcode
				// hello world function
%crel_bracket_open%widg-categories-list kb_id=1 title='KB Categories'%crel_bracket_close%
			

Parameters:

  • kb_id: (optional) ID of knowledge base if Multiple KB add-on installed
  • title: title of the list of Categories
  • filter: (optional) which categories to display. ‘all’ or ‘top’ categories. Only works if category_ids parameter is not used.
  • category_ids: (optional) – lists the relevant category ids. You can find ids by looking at the category URL when editing the category (see tag_ID) or using the plugin we developed here
  • order_by can be either ‘date created’ or ‘date modified’. Set to ‘date modified’ if missing.
Was this article helpful?
5 out Of 5 Stars

1 rating

5 Stars 100%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Need help?
Table of Contents