• Resolved dgissen

    (@dgissen)


    Great plug-in that I hope I’m not too much of a noob to use.

    I can’t seem to get the cpt-onomy I’ve created to display in the same way as my other custom taxonomies; I’m working locally, so no link.

    is this all I need to do, or do I need to register this somewhere else too?

    <?php if (get_the_term_list( $post->ID, 'producers' ) != null ) { ?>
    <div>producer: <?php echo $cpt_onomy->get_the_term_list( $post->ID, 'producers', '', ', ', '' ); ?></div>
    			<?php } ?>

    https://www.ads-software.com/extend/plugins/cpt-onomies/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Well, at first glance, it seems your logic needs a little tweaking. You need to add $cpt_onomy-> to the if statement. Or you could just do the following:

    <?php
    
    if ( $term_list = $cpt_onomy->get_the_term_list( $post->ID, 'producers' ) ) {
       ?><div>producer: <?php echo $$term_list; ?></div><?php
    }
    Thread Starter dgissen

    (@dgissen)

    thanks! “your logic needs a little tweaking” – story of my life.

    Hehe ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘displaying cpt-onomy’ is closed to new replies.