Skip Navigation

[Resolved] Custom Filtering by parent and child taxonomy

This support ticket is created 4 years, 10 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 1 reply, has 2 voices.

Last updated by Minesh 4 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#1485629
PRODUCTS-ARCHIVE-PAGE-WITH-TWO-FILTERS.jpg
FILTERS.jpg

- Tell us what you are trying to do?
I need to make with Toolset this layout hidden link
This is just an HTML layout, we need to make this work with WP and Toolset.
Is a ¨Products¨ custom post type archive page with two kind of filters:

Filters 1:
The first filter should display 3 dropdowns of custom taxonomy ¨Atributos¨
Select Dropdown 1 - Displays all the parent taxonomies.
Select Dropdown 2 - Displays the child taxonomies of the parent taxonomy selected in dropdown 1.
Select Dropdown 3 - Displays the child taxonomies of the child taxonomy selected in dropdown 2.

In this picture hidden link you can see the 3 levels of ¨Atributos¨ taxonomy filtering.

Filters 2:
Also, we need to have a filter on the same archive page that filters products by ¨Lineas¨ custom taxonomy.

The questions are:
1- Is it possible to make the filter 1?
2- Is it possible to filter products with both filters in the same page? If not, is it possible to filter with Filters 2 on that page, and redirect to a new results page with Filters 1?

- Is there any documentation that you are following?
The second filter by ¨Lineas¨ I’m expecting to do it following this instructions https://toolset.com/forums/topic/how-to-create-front-end-ajax-filtering-with-buttons-or-links/

- What is the link to your site?
hidden link

#1486077

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

The only way to search the posts with a dependent dropdown is to create a post type for every entity.

Having said that, Such a dependent dropdown select you can implement it when you configure each level of your taxonomy as a post type. That means all three level of taxonomies should be configured as a post type.

And then, you need to follow the Doc you shared:
=> https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/how-to-filter-posts-by-their-ancestors/

You can see it live in action with the real estate reference site:
=> hidden link

You may try to create a test site on our free test platform discover-wp.com and try to install the real estate reference site and play with it to learn how those dependent dropdowns for state and city is configured and latest you should configure it on your site accordingly.