I have attempted to follow the instructions regarding setting up a Taxonomy View to only show the Parent Category on a Custom Post type of Locations.
It is still showing both parent and child.
Discover Category View setup
Hi,
Thank you for contacting us and I'd be happy to assist.
I've performed some tests on my website with similar taxonomy view settings and it worked as expected.
To troubleshoot this, I'll need to see how this view and the single location template are set up on your website.
Can you please share the temporary admin login details, along with the link to an example single location page?
Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.
regards,
Waqar
Thank you for sharing the access details.
The view 'Discover Category' is functioning correctly to show the correct term results. but in its content template 'Loop item in Discover Category', the incorrect shortcode is used to show the term name:
( screenshot: hidden link )
[wpv-post-taxonomy type="location-general-class" format="name"]
The shortcode 'wpv-post-taxonomy' shows all the terms attached to the current post and not just the ones coming from the view:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-taxonomy
To show only the term from the current loop of the taxonomy view, the 'wpv-taxonomy-title' shortcode should be used:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-taxonomy-title
Once you'll replace this shortcode the correct term results from the view will start showing.
My issue is resolved now. Thank you!