gdkob_topics

This shortcode is used to display a list of the Reference Topics taxonomy terms.

Attributes

Shortcode has several attributes:

  • class: additional CSS class name to add
  • sort_column: column to use for sorting the list of terms. The default is ‘t.name’.
  • 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:

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

Example

Shortcode:

[gdkob_topics show_counts="yes" sort_column="tt.count" sort_order="DESC"]

Output:

0
0
24
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply