Skip Navigation

[Waiting for user confirmation] Conditional select filter

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
- 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 7 replies, has 1 voice.

Last updated by Minesh 3 days, 19 hours ago.

Assisted by: Minesh.

Author
Posts
#2818408

Hi! I'm working on a cars store website. In the front page of the store I have a filter and pagination area to filter the cars by make and model. This is a taxonomy filter, and I built this taxonomy hierarchically, setting models depending of the make of the car. Now the filter shows a unique select with all the makes and models in the database, I have almost 1000 cars and it's not much usable. Is it possible to create two conditional selects, one for makes and when you select a make, the other select shows only the models of that make?

Is there a similar example that we can see? Yes, you can check hidden link in the top filter toolbar

What is the link to your site? hidden link

#2818410

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

It's possible but not using the taxonomy filter but you will have to configure the make and model using post type and create a one to many post relationship betweeen make and model.

It's just like Country -> State -> city.

Please check the following related Doc:
- https://toolset.com/documentation/legacy-features/views-plugin/how-to-filter-by-related-posts/

#2818540

Thank you Minesh, is there a tutorial with more detail on how to do it step by step?. I remember a Toolset video showing something similar with a gym site or a real state example. Thanks again

#2818549

Minesh
Supporter

Languages: English (English )

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

Here is the Doc for Block Based views:
- https://toolset.com/course-lesson/creating-a-custom-search/#how-to-search-by-post-relationships

And here is the Doc that I already shared (using legacy views):
- https://toolset.com/documentation/legacy-features/views-plugin/how-to-filter-by-related-posts/

Here is real estate site Doc:
- https://toolset.com/course/wordpress-real-estate-sites/

If you want please let me know and I'm happy to share you sandbox with real estate site setup.

#2818551

Thank you Minesh, yes, please, if you can share me the sandbox to check how is it built I appreciate a lot.

#2818553

Minesh
Supporter

Languages: English (English )

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

Here is a sandbox site and you can auto-login to it using the following link:
- hidden link

Here is the find property page where yo can see the State and City dependent dropdown:
- hidden link

#2818597

Thanks Minesh, I am going to check the documentation and make a diagram of how the new post types and the relationships between them would look like. If you don't mind, before I start creating anything, when I have the diagram I will see it with you so you can validate it, is it possible? thanks.

#2818870

Minesh
Supporter

Languages: English (English )

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

Please share it when you can and let me review it.