Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wordpress get post taxonomy terms

//Get selected terms of a post by taxonomy
$selectedTerms = wp_get_post_terms(get_the_ID(),'TAXONOMY_NAME');
foreach($selectedTerms as $term){
	echo $term->name;
}
 
PREVIOUS NEXT
Tagged: #wordpress #post #taxonomy #terms
ADD COMMENT
Topic
Name
1+5 =