Created
May 6, 2014 21:12
-
-
Save barbwiredmedia/31778ef9562b37202908 to your computer and use it in GitHub Desktop.
Wordpress has term, categories, taxomomy. Can be used in the loop or wp_query where your_taxonomy_name = the custom taxonomy name and a_term_name is a created term
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (has_term('a_term_name', 'your_taxonomy_name')): ?> | |
//stuff here | |
<?php elseif (has_term('another_term_name', 'your_taxonomy_name')): ?> | |
//stuff | |
<?php endif; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment