Created
April 21, 2013 10:36
-
-
Save caratage/5429205 to your computer and use it in GitHub Desktop.
Custom Taxonomy - Conditional Tag
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
if (is_object_in_term( $post->ID, 'taxonomy-slug' )) { | |
// do something | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment