gdtt_get_taxonomy_list($taxonomy = 'category', $separator = '', $post_id = 0, $include_post_type = true)

  • $taxonomy: taxonomy to list.
  • $separator: to separate elements in the list. If empty renders as UL/LI.
  • $post_id: post to render list for. If set to 0, function will use global $post.
  • $include_post_type: if set to true, term link will include post_type argument.

Display list of terms for any taxonomy for any post. List will be displayed as UL/LI (if $separator is empty), or with plain links list if there is a separator. Each link can be expanded with post_type.


Leave a Reply