[resolved] Taxonomies Work But Don't Display (3 posts)

  1. Walton
    Posted 5 years ago #

    I have registered a number of taxonomies and they work fine on the admin side. I can create post types and assign them taxonomies. I can create and edit taxonomies. All ok

    However, they aren't displaying in my posts.
    I'm using
    <?php echo get_the_term_list( $post->ID, 'level', 'Level: ', ', ', '' ); ?>

    which works fine on another blog.

    The only issue I can think of is whether I need to include some parameter in my register_taxonomy function to ensure that it displays.

    Appreciate any help. Haven't found any solutions in the forum as of yet to this problem.

  2. keesiemeijer
    Posted 5 years ago #

    try it with:

    <?php echo get_the_term_list( $post->ID, 'level', 'level', ' ', '' ); ?>
  3. Walton
    Posted 5 years ago #

    Thanks for the help. Actually turns out I was using the wrong template file! Forgot that I changed the name of my custom post type, but didn't change the name of my single php file!

    Both codes above work fine, with slightly different displays.

Topic Closed

This topic has been closed to new replies.

About this Topic