Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get custom post type taxonomy value

<?php $terms = wp_get_post_terms( $query->post->ID, array( 'country', 'subject' ) ); ?>
<?php foreach ( $terms as $term ) : ?>
<p><?php echo $term->taxonomy; ?>: <?php echo $term->name; ?></p>
<?php endforeach; ?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #custom #post #type #taxonomy
ADD COMMENT
Topic
Name
2+1 =