my website is a woocommerce site and it has blog posts and some pages. My problem is the search box. Everytime I searched it only shows the posts and pages results. It is not showing woocommerce products. How can I fix this wordpress search result?

Here is my wordpress search.php https://pastebin.com/pGWig0iH


  • Maybe you have a field with name="post_type" in the search form, which sets what post types to search for. – nmr May 5 at 21:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.