Skip Navigation

[Resolved] Display a view of post type and exclude or include certain categories/taxonomy?

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

Problem:
How Display a view of post type and exclude or include certain categories/taxonomy?

Solution:
You should simply add the query filter for your category/taxonomy to your view and select "Any of the following" and further select your desired terms and save the query filter.

You can find proposed solution, in this case, with the following reply:
https://toolset.com/forums/topic/display-a-view-of-post-type-and-exclude-or-include-certain-categories-taxonomy/#post-812549

Relevant Documentation:
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

This support ticket is created 6 years, 7 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 3 replies, has 2 voices.

Last updated by Minesh 6 years, 7 months ago.

Assisted by: Minesh.

Author
Posts
#808062

I want a conditional View of the Blog Post type, but only certain categories. How to I express [wpv-post-type] AND categories to include or a single category to exclude from the output?

#808803

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - could you please share more details with your requirements. Maybe a test case example with few screenshot will help me to understand your issue and I would be in better position to guide you in right direction.

Please share details where exactly you want to include/exclude term etc.etc..

#812442

One way would be to show blog posts (post-type), but limit the view to only posts from 2 categories "Tutorials" and "Product Updates".
Or
show blog posts (post-type), but limit the view to only posts that are not in the "News" or "Industry" categories.

I wasn't sure if I limit the view based on the taxonomy term or how to properly express this with the conditional GUI.

#812549

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Yes - its possible.

You should simply add the query filter for your category to your view and select "Any of the following" and further select "Tutorials" and "Product Updates" and save the query filter.

Please check following Doc that will help you:
=> https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/