WordPress.org

Support

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

Custom Taxonomy, if x display y

  • 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)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Taxonomy, if x display y’ is closed to new replies.
Skip to toolbar