Skip Navigation

[Resolved] Custom post archive layout should only show specific taxonomy

This support ticket is created 5 years, 12 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 1 reply, has 2 voices.

Last updated by Christian Cox 5 years, 12 months ago.

Assisted by: Christian Cox.

Author
Posts
#1161502

I have created an archive page for my custom posts.
These post have 2 main taxonomies (brand and producer)
The custom post display both taxonomies, but when I click for example the 'brand' link on the post, I'm expecing to see only posts from this brand. But Instead I'm just seeing all posts.

I added a query filter, editing the View cell for my layout, but apparently this isn't working, as all posts appear in the page and not just the selected posts.

I want to use the same archive page layout for brand and producer archives, so if I click a brand, it should only show that particular brand. If I click a producer it should only show posts with that producer.

#1162425

The custom post display both taxonomies, but when I click for example the 'brand' link on the post, I'm expecing to see only posts from this brand.
Can you tell me more about this link? How is it created? Please share any shortcodes you have used to create this link. Then please share the URL you are directed to when you click the taxonomy term link.

I added a query filter, editing the View cell for my layout, but apparently this isn't working, as all posts appear in the page and not just the selected posts.
Okay it sounds like you're using a View to display the results of an archive. The normal workflow is to use a Toolset WordPress Archive cell in a Layout that is assigned to this taxonomy archive:
https://toolset.com/documentation/getting-started-with-toolset/customize-post-archives/designing-archives-with-toolset-layouts/
https://toolset.com/documentation/user-guides/designing-archive-pages-for-custom-taxonomy/
The main exception is when you want to include a distance filter. It's not currently supported in WordPress Archives, so a View is required instead.