// ================================================================== // SINGLE PAGE OF SPECIFIC CPT TAXONOMY // ================================================================== function single_page_of_specific_cpt_taxonomy(){ global $post; if(is_singular('YOUR_CPT')){ foreach (get_the_terms(get_the_ID(), 'YOUR_TAXONOMY') as $cat) { //echo $cat->slug; if($cat->slug === 'YOUR_TERM'){ echo 'YEAHHH!!!!'; } } } } add_action('genesis_entry_content', 'single_page_of_specific_cpt_taxonomy');
Leave a Reply