Taxonomy Breadcrumb – Need to get Single Taxonomy Term, not the whole tree
-
Hi!
I want to show only one taxonomy term in the breadcrumb of a page, for example:
If the transplant type is “Pediatric Allogeneic”, the below code will show it:
`<?php global $post;
$fact_post_id = $post->ID;
$fact_taxonomy = ‘transplant-types’;
the_terms( $fact_post_id, $fact_taxonomy, ‘Showing Results For: ‘, ‘ / ‘ );
echo ‘</div>’;
?>`But it also shows each term in the taxonomy. I’m hoping there is a quick way to only show “Pediatric Allogeneic” in the breadcrumb list. I’m using WCK to create the custom taxonomy. Any ideas? Thanks so much!
The page I need help with: [log in to see the link]
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Taxonomy Breadcrumb – Need to get Single Taxonomy Term, not the whole tree’ is closed to new replies.