WordPress.org

Forums

Custom Taxonomy, if x display y (2 posts)

  1. shaneholden
    Member
    Posted 5 years ago #

    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!

  2. shaneholden
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.