I am using Woo-Commerce and I want just the products to show in the search. I have tried editing the file DavesWordPressLiveSearchResults.php by changing
$wpQueryParams[‘post_type’] = ‘any’;
$wpQueryParams[‘post_type’] = ‘products’;
But no results show.
I am ok with the pages or post showing as well, as long as they return the correct results. For some reason on my site, if you type in “grinder” it pulls several items that kind of match, but there us an actual page titled “Gringers” and that is not even in the results.
- The topic ‘Woo-Commerce and Product Search’ is closed to new replies.