Output the slug and name of a CPT single post taxonomy term
If you’re on a single post, then your code won’t work, because get_queried_object will contain the post (and not a term). If you want to get terms of given post, you should use get_the_terms function. $terms = get_the_terms( get_the_ID(), ‘<TAXONOMY_NAME>’ ); // <- put real tax name in here You also have to remember, that … Read more