Retrieve Taxonomy Label
try this: private function get_taxonomy_by_term_id( $term_id ) { // We can’t get a term if we don’t have a term ID. if ( 0 === $term_id || null === $term_id ) { return; } // Grab the term using the ID then read the name from the associated taxonomy. $taxName=””; $term = get_term( $term_id ); … Read more