Skip Navigation

[Resolved] Showing Parent Custom Taxonomy Only

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 4 replies, has 2 voices.

Last updated by ianH-12 1 year, 1 month ago.

Assisted by: Waqar.

Author
Posts
#2560079

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.

#2560263
Screenshot 2023-02-23 15.48.10.png

Discover Category View setup

#2560741

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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

#2562233

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

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


[wpv-taxonomy-title]

Once you'll replace this shortcode the correct term results from the view will start showing.

#2564671

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.