How to Only Search WooCommerce Products in WordPress?

Key Takeaways

  • Nexter Blocks includes a Search Bar block that restricts searches to WooCommerce products only.
  • AJAX Search in the Search Bar block displays matching products in real time, enhancing user experience for stores with more than 20 products.
  • The Search Bar block requires Nexter Blocks to be installed and activated for full functionality.
Table of Contents

Want to make it easier for customers to find your products on your WooCommerce store? By default, WordPress search returns pages, posts, and products all in one set of results, making it harder for shoppers to find what they came to buy.

The Search Bar block is a block in Nexter Blocks for the WordPress block editor (Gutenberg) that lets you restrict searches to WooCommerce products only. Unlike dedicated plugins such as Advanced Woo Search or SearchWP, the Search Bar block is built into the block editor, so no separate plugin is needed.

To check the complete feature overview documentation of the Nexter Blocks Search Bar block, click here.

Best Used For:

  • WooCommerce stores with large product catalogs where customers need to locate items quickly
  • Online shops where blog posts and pages appear in default search results and obscure products
  • Stores using the WordPress block editor that want product-specific search without adding a separate plugin

Requirement  – This block is a part of Nexter Blocks, make sure it is installed & activated to enjoy all its powers.

To set up a WooCommerce product search bar in WordPress, make sure you have added some products to your WooCommerce store first.

Then, add the Search Bar block to the page or template and follow the steps:

1. Open the item under Search Bar and select Post from the Source section.

2. From the Select Post dropdown, choose Products. This tells the Search Bar block to search WooCommerce products only instead of all content on your WordPress site.

searchbar select product

A dropdown will now appear beside the search field on the frontend.

In the Label field, enter a name for the category dropdown that appears beside the search input, such as “All Categories”. This label helps customers understand what the dropdown is filtering.

In the Placeholder field, enter the text that shows inside the search box before a customer types, such as “Search products…”, to guide them on what to enter.

Toggle on Show Count to display the number of products in each category next to the dropdown option. Use this when your store has several product categories and you want customers to see how many items each category contains before selecting one.

3. Go to the Extra Option tab and toggle on AJAX Search. With AJAX Search active, matching products appear in real time as customers type, without a full page reload. Use this for stores with more than 20 products, since instant results reduce the time shoppers spend waiting and increase the chance they find and click through to a product.

searchbar ajax search 5

Now you can select a product from the dropdown to show all products in the search results, or search for specific products directly.

Search results land on the default WordPress search results page. To control how WooCommerce products appear on that results page, you can build a custom layout with Nexter Builder. See How to Create a Product Archive Template in WordPress for Free? for the setup steps.

To show a curated product grid alongside the search bar on the same page, the Product Listing Block For WordPress lets you display WooCommerce products in a filterable listing below your search block.

searchbar select product demo

About the Author

Photo of Aditya Sharma CMO of NexterWP
CMO at POSIMYTH Innovations · NexterWP · 7 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordpressThemesElementorn8nAIClaudeAutomationServer

Share your Thoughts

Get Instant Answers to all your questions about Nexter Blocks,
Extensions & Theme trained on 1000+ Docs and Videos

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What should I do if the Search Bar block isn't showing WooCommerce products?

If the Search Bar block isn't displaying WooCommerce products, ensure that you have added products to your WooCommerce store. The Search Bar block from Nexter Blocks requires products to be present in order to function correctly. Additionally, check that the block is properly configured to source from 'Products' in the Select Post dropdown.

Does the AJAX Search toggle improve the search experience?

Enabling the AJAX Search toggle enhances the search experience by allowing users to see results in real-time as they type. This feature helps users find products faster without needing to refresh the page, making it particularly useful for stores with a large inventory.

What happens if I forget to enable the AJAX Search toggle?

If you forget to enable the AJAX Search toggle, users will not receive instant search results as they type. Instead, they will have to submit their search query to see results, which can slow down the shopping experience. It's advisable to enable this feature for a smoother user interaction.

Are there any limitations to using the Search Bar block with Nexter Blocks?

The Search Bar block is specifically designed to work within the Nexter Blocks ecosystem. It requires the Nexter Blocks to be installed and activated. If you attempt to use it without the necessary blocks, it will not function as intended, limiting your ability to search WooCommerce products effectively.

How can I ensure the search bar only returns WooCommerce products?

To ensure the search bar only returns WooCommerce products, select 'Products' from the Select Post dropdown in the Search Bar block settings. This configuration limits the search results to your WooCommerce inventory, providing a focused search experience for users looking for specific items.

Last reviewed: April 14, 2026

Related Docs