Skip Navigation

[Resolved] How to create multiple taxonomies’ archive page

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

Problem: I would like to create archives of posts by combining term filters from two different custom taxonomies. I would like to include both terms in the page title for SEO purposes.

Solution:
Create a View of Shops. Add two Query Filters:
-Area taxonomy term
-Shop Category taxonomy term
Set both taxonomy filters to filter by term, set by a shortcode attribute. In the View Loop, insert a post link shortcode.

Create a custom Page called "Cafes in London". Insert this View in the Page contents and use shortcode attributes to manually define the area and shop-category terms used in the View filter. Create custom pages for each combination of terms.

Relevant Documentation:
https://toolset.com/documentation/user-guides/passing-arguments-to-views

This support ticket is created 6 years, 3 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 koheiY 6 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1140410

Precondition:

I have a custom post type named "shop".
Shop have 2 custom taxonomies "area" and "shop-category".

I have 5 shops in my site.

Post Title, Area, Shop-category
ShopA, London, Cafe
ShopB, NewYork, Cafe
ShopC, Paris, Bar
ShopD, London, Bar
ShopE, London, Cafe

What I want to do:

I want to create a multiple taxonomies' archive page, for example "Area=London" and "Shop-category = Cafe".
In the condition, the archive page should show ShopA and ShopE.

And I want to add both term ("London" and "Cafe") to the taxonomy archive pages' title tag. (for SEO)
For example : "Cafe in London"

Do you have any solutions?

#1140710

Hi, there's no WordPress or Toolset feature that automatically creates multi-taxonomy filtered archives like this. It would require custom rewrite rules code that falls outside the scope of support we provide here in the forums. However, I can show you how to get similar results with Views and custom Pages.

Create a View of Shops. Add two Query Filters:
-Area taxonomy term
-Shop Category taxonomy term
Set both taxonomy filters to filter by term, set by a shortcode attribute. In the View Loop, insert a post link shortcode.

Create a custom Page called "Cafes in London". Insert this View in the Page contents and use shortcode attributes to manually define the area and shop-category terms used in the View filter. Create custom pages for each combination of terms.

More information about passing arguments into Views:
https://toolset.com/documentation/user-guides/passing-arguments-to-views

#1140756

Thank you!