Skip Navigation

[Resuelto] Custom Filtering by parent and child taxonomy

This support ticket is created hace 4 años, 10 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 1 respuesta, tiene 2 mensajes.

Última actualización por Minesh hace 4 años, 10 meses.

Asistido por: Minesh.

Autor
Mensajes
#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 enlace oculto
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 enlace oculto 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?
enlace oculto

#1486077

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: 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:
=> enlace oculto

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.