Am hoping someone can help me pull out a single custom category name and show it on my custom post page. I've created a new custom post type 'Itinerary' as well as some new custom categories (terms):
- Water Sports
- Hiking Adventures
- Mountain Biking ...
- South America ...
Each Itinerary has 2 categories applied to it, for example: Itinerary 'Coastal Walks' is categorised as Hiking Adventures and Australia.
I would like to display in my single itinerary page the name of the child Destination e.g. Region: Australia (or whatever child destination is selected)
I've tried using this:
<?php echo the_terms( $post->ID, 'trip_cat', 'Region: ', ', ', ' ' ); ?>
but this displays all the categories selected - I'm trying to display only the child of category Destinations.
Can anyone please help? :)