Skip Navigation

[Resolved] In product search, how do I search only in the two of the 10 categories I have?

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

Problem:

I have products from Woocommerce. I made a search with Toolset View. But it is searching through all of the products. I only want to search in a subset of the products (in the two categories out of many that I have). How do I do this?

Solution:

You can add a taxonomy filter into your view, filter posts by the specific two categories

Relevant Documentation:

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

This support ticket is created 6 years, 4 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 4 months ago.

Assisted by: Luo Yang.

Author
Posts
#1121958

Tell us what you are trying to do?
I have products from Woocommerce. I made a search with Toolset View. But it is searching through all of the products. I only want to search in a subset of the products (in the two categories out of many that I have). How do I do this?

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?
hidden link

#1122545

Hello,

You can add a taxonomy filter into your view, filter posts by the specific two categories, see our document:
https://toolset.com/documentation/user-guides/filtering-views-by-taxonomy/

Any of the following
Choose taxonomy values from the checkboxes (like in the screenshot above). This is good in cases where you want to load posts that belong to specific taxonomy.

#1122905

My issue is resolved now. Thank you!

#1123024

You are welcome