-
Echo Knowledge Base
-
- Order Articles and Categories
- Main Page Width
- Main Page FAQs
- Set Image and Font Icons for Categories
-
- Article Page Width
- Article Layout
- Article Sidebars
- Article Page FAQs
- Embedding Google Documents in Articles
-
Add-ons
-
Access Manager
Print
Categories List Shortcode
Created OnFebruary 18, 2018
Updated OnJuly 14, 2023
By:Dave
5 out Of 5 Stars
1 rating
5 Stars | 100% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
Views646
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.
Example
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
Table of Contents