---
title: "How to Only Search WooCommerce Products in WordPress?"
url: https://nexterwp.com/docs/only-search-woocommerce-products-in-wordpress/
date: 2024-12-02
modified: 2026-04-17
author: "Aditya Sharma"
description: "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,..."
image: https://nexterwp.com/wp-content/uploads/2024/12/How-to-Only-Search-WooCommerce-Products-in-WordPress_-1024x519.jpg
word_count: 530
---

# 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.

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](https://nexterwp.com/docs/add-a-search-bar-in-wordpress/).

**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.***

[LIVE BLOCK LINK](https://nexterwp.com/nexter-blocks/builder/wordpress-ajax-search-bar/)

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.

![](https://nexterwp.com/wp-content/uploads/2024/12/searchbar-select-product.png)

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.

![](https://nexterwp.com/wp-content/uploads/2024/12/searchbar-ajax-search-5.png)

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?](https://nexterwp.com/docs/create-product-archive-template-in-wordpress/) for the setup steps.

To show a curated product grid alongside the search bar on the same page, the [Product Listing Block For WordPress](https://nexterwp.com/nexter-blocks/listing/wordpress-product-listing/) lets you display WooCommerce products in a filterable listing below your search block.

![](https://nexterwp.com/wp-content/uploads/2024/12/searchbar-select-product-demo.gif)

## Frequently Asked Questions

**Q: What should I do if the Search Bar block isn't showing WooCommerce products?**
A: 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.

**Q: Does the AJAX Search toggle improve the search experience?**
A: 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.

**Q: What happens if I forget to enable the AJAX Search toggle?**
A: 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.

**Q: Are there any limitations to using the Search Bar block with Nexter Blocks?**
A: 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.

**Q: How can I ensure the search bar only returns WooCommerce products?**
A: 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.
