Skip Navigation

[Resolved] Filter taxonomy terms

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to show a list of descendant taxonomy term links on each taxonomy term archive.

Solution: Use a taxonomy View and filter that View using a term parent filter, where the parent is the current page. Output a link to each term archive in the Loop Output editor.

Relevant Documentation: https://toolset.com/documentation/user-guides/create-custom-taxonomies/

This support ticket is created 7 years, 2 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.

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 2 replies, has 2 voices.

Last updated by JorgeE7101 7 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#573359
Screen Shot 2017-09-25 at 17.25.12.png

Hello. I know I can filter posts by taxonomy, but I is it possible to filter the taxonomy terms?

I have a hierarchical Taxonomy with Continent, Countries and Cities and all have fields with information.

I need a landing page where the user will have a thumbnail for each country and each thumbnail links to the relevant taxonomy wordpress archive page. (see example attached). At the top of the page I will have the filter options and if the user clicks on the "Europe" he will have all the thumbnails and link to each country taxonomy page.

I know this can be done for posts or for a portfolio kind of display but how can I do it for the archive pages?

Thanks.

#573847

While it's not currently possible to filter a taxonomy term archive based on that same taxonomy, you could use category term links instead of filters. It wouldn't support AJAX but it would achieve the effect you're looking for.

- Create a View of your hierarchical taxonomy. Set up a parent filter, and choose "Parent is the term of the current taxonomy archive page".
- In the Loop Output editor, include a link to each term.
- Place this View in your WordPress Archive for the category. Each term will include a list of links that direct the user to the term's children.

Is this something that could work for you? If not, let me know what I'm missing.

#574456

Thanks Christian. I'll have a look at that option.