How to display all parent and child custom taxonomies (get_the_term_list) (1 post)

  1. I like screenshots
    Posted 2 years ago #

    I am wondering how to to display ALL the parent and child custom taxonomies with the function get_the_term_list... Let me explain:

    I'm running a popular paid plugin and they are using custom taxonomies to make custom categories. I have a parent custom categories with a child and sub-child custom categories (essentially identical to a normal set of hierarchical categories) like so...

    - abc
    - 123
    I have this piece of code: <?php if ( $post->post_type == 'post' ) the_category(', '); else echo get_the_term_list( $post->ID, APP_TAX_CAT, '', ', ', '' ); ?> but it only displays the last category '123'.

    I would like the piece of code to show the 'XYZ and the 'abc' categories inline as well.

    Thanks heaps,

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by I like screenshots
  • This topic is not resolved
  • WordPress version: 3.6