Answers for "wordpress get custom taxonomy by post id"

PHP
4

wordpress get taxonomy of a post

<?php $term_obj_list = get_the_terms( $post->ID, 'taxonomy_name' ); ?>
Posted by: Guest on July-09-2020
-1

How do I get current taxonomy "term id" on wordpress?

$obj = get_queried_object();
echo $obj->term_id;
Posted by: Guest on May-13-2021

Code answers related to "wordpress get custom taxonomy by post id"

Browse Popular Code Answers by Language