Skip Navigation

[Resolved] Do not show child taxonomy as part of filter.

This support ticket is created 6 years, 5 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 4 replies, has 2 voices.

Last updated by anthonyC-8 6 years, 5 months ago.

Assisted by: Christian Cox.

Author
Posts
#903141

Hi,

This is a follow up to this ticket.
https://toolset.com/forums/topic/how-to-select-only-the-parent-terms-in-a-taxonomy-while-showing-in-filter/

Is this possible now? I want to only allow visitors to filter by the parent taxonomy. This should bring back all posts that match the parent as well as any children of that parent.

thanks

#903162

Hi, this feature has not been implemented since the previous ticket. It would require custom code that falls outside the scope of support we provide here in the forum. However, if the top-level taxonomy term filter is the only filter you want to include in the View, I can show you how to accomplish something similar with another View of this taxonomy. Unfortunately this approach only works when the taxonomy filter is the only filter shown on the front-end of the site, so let me know how you would like to proceed.

#903170

Would search count as another filter? That is, would your method work with a set of parent checkboxes PLUS search work?

If not, any place you can point me towards for advice on how to build what I need?

Thanks,
Anthony

#903189

Yes, search counts as another filter so the approach I was considering won't be helpful for you. If I wanted to build this I would start by creating the Query Filter that responds to a URL parameter. Try to grasp how the URL parameter will work with the search filters, then create the select field directly in the Filter Editor panel using some hard-coded data. Work on getting the filter updating the URL as expected and producing the correct results. Then look into the get_terms API and figure out how to create the select field dynamically instead of using hard-coded data.

#903202

na