Skip Navigation

[Resolved] Taxonomy Selector Displays Values Based Upon Another Taxonomy Selection

This support ticket is created 7 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 7 years, 11 months ago.

Assisted by: Minesh.

Author
Posts
#401021

I have a parametric search set up that works well. However, I want to add additional functionality to it so that users can benefit from a simpler experience.

Currently, I have one custom post type called "Listings." I have a taxonomy set up called "Listing Categories." The Listing Categories includes categories and nested subcategories.

I want to split categories and subcategories into two taxonomies, offering two selectors in the parametric search. I want select subcategories to display in the second selector based upon a user's category selection in the first selector.

Can you please offer me guidance?

Thank you!

🙂 Eric

#401099

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Using one taxonomy it's not possible as to display dependent dropdown because to display dependent dropdown it should have parent/child relationship.

To implement such functionality - You should check this example:
hidden link
Check “State” and “City” dropdowns.

You can register test site to review how it was setup. It’s totally free.
https://toolset.com/faq/how-and-why-to-create-a-test-site-in-discover-wp/

#401253

Thank you Minesh. The "State" and "City" example helps.

In a parent/child relationship, can a child have multiple relationships with parent taxonomies?

For example, in the "State" and "City" example, can a city have a relationship and display for several states? (of course, in reality, a city has only one state). 🙂

#401413

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I don't thin so. If you check real estate site, post type "State" is the parent of post type "City". That means this is "one to many" relationship:

I suggest you should go through this doc that will help you:
=> https://toolset.com/documentation/user-guides/creating-post-type-relationships/
=> https://toolset.com/documentation/user-guides/getting-started-views/part-8-one-many-relationships/

For many to many relationships:
=> https://toolset.com/documentation/user-guides/many-to-many-post-relationship/
=> https://toolset.com/documentation/user-guides/getting-started-views/part-9-many-many-relationships/

I hope this information will help you to resolve your issue.

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