Problem: I would like to create a navigation system that shows icons for all the terms in the same hierarchical level. When the User clicks one of the icons, they are redirected to another page with icons for each of the child terms of the current term, and so on.
Solution: Use a combination of a WordPress Archive and a View of child terms to accomplish this navigation system.
- Create a View of this taxonomy. In the popup when you create the new View, choose "show all results".
- Add a term parent Query Filter to this View, where the term parent is set by the current archive.
- Use the Loop Wizard to create an unordered list. Insert the taxonomy archive link in the loop for now, so we can verify everything is working.
- Create a WordPress Archive and assign it to this taxonomy.
- In the Loop Editor area of the WordPress Archive, use the Loop Wizard to create an ordered list. Insert the post title for now.
- Just above the wpv-loop tag, use the Fields and Views button to insert the taxonomy View you created.
- Now go to one of the parent term archive pages and test it out. If the taxonomy is "category" and the parent term slug is "parent-slug", you can go to yoursite.com/category/parent-slug to see the taxonomy archive.
- You should see a list of child term archive links and also a list of posts in the current term. Click one of the child term archive links, and you will go to a similar archive for the grandchild terms.
- Once that is working as expected, you can go back and edit the View of taxonomy terms to show different information for each term, like the custom image field.
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 6 years, 2 months ago.
Assisted by: Christian Cox.