How can I change my search form to bring up product results, not blog results
Try below filter in your function.php file function SearchFilter($query) { if ($query->is_search) { $query->set(‘post_type’, ‘product’); } return $query; } add_filter(‘pre_get_posts’,’SearchFilter’); Hope this will help!