Support » Themes and Templates » Custom Taxonomy, if x display y

  • shaneholden

    (@shaneholden)


    How do you do something similar to this with custom taxonomies?

    ‘<?php if (has_tag(‘music’)) { ?>
    MUSIC TAG
    <?php }elseif (in_category(‘8’)) { ?>
    CATEGORY 8
    <?php }elseif (has_tag(‘chat’)) { ?>
    CHAT TAG
    <?php }else{ ?>
    ELSE HERE
    <?php } ?>’

    Basically I want to quit displaying things based on the old cats/tags, and do a custom taxonomy of type, like tumblr, and display the image that is associated w/ each.

    So, if photo post, display photo icon, etc. all based on a new custom taxonomy.

    Thanks!

Viewing 1 replies (of 1 total)
  • shaneholden

    (@shaneholden)

    Surely this is doable. I’ve got it close using is_term, but can’t get it to show images. Anyone?

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Taxonomy, if x display y’ is closed to new replies.