This thread is resolved. Here is a description of the problem and solution.
Problem:
The issue here is that the user wanted to pre filter their view so that only specific products will be displayed using that view. Solution:
If you are using our Block builder then you should be able to see a query filter in the Content selection section under the Block tab.
This query filter section should allow you to create a static filter that is based on any post attribute such as custom fields or taxonomy.
This support ticket is created 3 years, 9 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.
Hello,
I am working on a product catalog.
Each product belongs to a specific category. There will be 2 categories of products.
I want to display each product category on a specific WordPress page.
For a category, I want to display a search filter to filter the products against the values of 3 custom fields.
Here is my question:
Do I have to create 2 custom post types, one for each product category or can I work with a single “product” custom post type with a taxonomy for categories?
For the latter case, can I pre-filter the view against the category? Could this pre-filter still be active even after searching from the search filter?
If I understand correctly you want to have 2 separate pages with a view that are pre-filtered by 2 different categories on the product post type and then each page should have a filter for the custom fields that are on the products?
Example if I have we have the post type called Product and 2 category called Red and Blue. On Page 1 you only want products that are Red and on page 2 you only want products that are Blue correct?
Then you want to filter those different pages further using the frontend filters for the custom fields that are on the products.
For the latter case, can I pre-filter the view against the category? Could this pre-filter still be active even after searching from the search filter?
Yes you can have the pre-filtered category and then the prefilter will still be active given that you don't need that category filter as a frontend search field.
I'm assuming here that you're using the Block builder to create your view.
How should it be done concretely.
I'm thinking about creating a search filter with a pre filled field with the category name.
This field should be hidden for the user.