Tell us what you are trying to do?
I currently have a view that is setup to allow the user to do a custom search through our products using a view. This view was setup with Display the results using a custom search. In my options I do not have the option to add a filter to exclude a specific category from the search.
I want to be able to exclude a Discontinued Category from the search area. What would be the best method to do this?
This reply doesn't make sense. Here is screenshots of the options I have available. I need to be able to filter out certain woocommerce categories or for the filter to not show products when marked out of stock.
I believe you are confused on what I am asking. I don't need the dropdown search option to not display Discontinued Products, what I need to when a user loads the view, that the view doesn't show any products that have been labeled as discontinued or out of stock.
Also to filter out for products that are not in stock please follow the steps below. In your case you don't have the query filter section enabled, so we will need to enable it.
1. Edit your view and scroll to the top.
2. Click Screen option in the top right hand corner and enable the query filter section.
3. Go to Toolset->Settings->Frontend and then click "Select Custom Fields" under the hidden custom fields section.
4. Search for _stock and enable it.
5. Go to your view and go to the query filter section and add a filter for the _stock custom field.
6. Then set your filter to a <b>Number</b> greater than 0. See Screenshot