Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //creates the array to format the list of taxonomies
- $args = array(
- 'template' => __( '%s: %l.' ),
- 'term_template' => '<a href="%1$s">%2$s</a>',
- );
- //creates the array to receive all the taxonomies
- $taxList = get_the_taxonomies( $post->ID, $args );
- //shows every taxonomy separately
- foreach ($taxList as $taxItem) {
- echo $taxItem;
- endforeach;
Add Comment
Please, Sign In to add comment