Answers for "get all terms 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
0

woocommerce get post terms product

$term_obj_list = get_the_terms( $post->ID, 'taxonomy' );
$terms_string = join(', ', wp_list_pluck($term_obj_list, 'name'));
Posted by: Guest on November-18-2020

Code answers related to "get all terms by post id"

Browse Popular Code Answers by Language