WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Taxonomies Work But Don't Display

[Resolved] Taxonomies Work But Don't Display

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator keesiemeijer

    @keesiemeijer

    try it with:

    <?php echo get_the_term_list( $post->ID, 'level', 'level', ' ', '' ); ?>

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Taxonomies Work But Don't Display’ is closed to new replies.
Skip to toolbar