Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

This shortcode is used to display a list of the Knowledge Category taxonomy terms.


Shortcode has several attributes:

  • class: additional CSS class name to add
  • type: content type to show categories for: ‘article’, ‘user_guide’, ‘faq’ or ‘reference’. The default is ‘article’.
  • product: limit the list to categories for the specific product by product ID.
  • sort_column: column to use for sorting the list of terms. The default is ‘’.
  • sort_order: order for sorting: ‘ASC’ or ‘DESC’. The default is ‘ASC’.
  • show_counts: show number of posts for each term. The default is ‘yes’.
  • cached: cache the results for the number of hours. The default is 24.

Sort Column

Sort column supports following values:

  • term name
  • t.term_id: term ID
  • t.slug: term slug name
  • tt.count: posts count



[gdkob_categories sort_column="t.term_id" sort_order="ASC" type="faq"]


Rate this reference

You are not allowed to rate this post.

Leave a Comment