Problem:
How can I limit the output of an Archive for a taxonomy to only show a certain Post Type, if the queried Taxonomy is actually assigned to more than one Post type?
Solution:
1. Create a new View WordPress Archive for the taxonomy "your-tax"
2. In the Views Loop output whatever you want, conditionally:
As example, this below will output only Posts of Type "Post", in any term of the Taxonomy "Category":
[wpv-conditional if="( '[wpv-post-type]' eq 'post' )"][wpv-post-title][/wpv-conditional]
3. You do set up the conditional using the Conditional Output GUI.
Relevant Documentation:
https://toolset.com/documentation/user-guides/normal-vs-archive-views/
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/
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 |
---|---|---|---|---|---|---|
- | - | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 | 14:00 – 20:00 |
- | - | - | - | - | - | - |
Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)