Answers for "how to get custom taxonomy using post id in wordpress"

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 "how to get custom taxonomy using post id in wordpress"

Browse Popular Code Answers by Language