How to display custom taxonomies in associated with a post?
-
I have created a hotel website with help of Pods. I created custom post types to display the hotels and their rooms, and custom taxonomy types to display the amenities available in each room. So whenever I publish a room, to add the amenities available in that room I tick their respective taxonomies. For instance, if a room has TV and AC, I tick both those taxonomies, and if it doesn’t have them then I leave both taxonomies unchecked.
The problem is… I’m finding it hard to display the taxonomies that I check with each post. When I insert the following shortcode in my Elementor Page template, it shows all taxonomies that I have created instead of the ones that are applied to post:
[pods name = "amenity" template = "amenity display template"]
This shortcode displays the amenities in my desired style (along with an icon on left), but it doesn’t filter the taxonomies based on whether they have been associated with the post or not. I want the shortcode to display only those amenities which I tick while creating the post. You can see my property display page here.
The page I need help with: [log in to see the link]
- The topic ‘How to display custom taxonomies in associated with a post?’ is closed to new replies.