Skip to content

How to Only Search WooCommerce Products in WordPress?

Key Takeaways

  • Search Bar de Nexter Blocks restringe la búsqueda a productos cuando activa Only for specific CPT y establece CPT Type en Products, y los resultados muestran precio y short description.
  • WooCommerce es un requisito para la búsqueda de productos: con WooCommerce inactivo, el bloque devuelve un error explícito en lugar de una lista vacía.
  • La búsqueda no encuentra variaciones ni SKUs por defecto, y los productos ocultos o marcados con exclude-from-search y exclude-from-catalog permanecen excluidos.
Table of Contents

A shopper searching your store wants products. Returning blog posts and a shipping policy alongside them is the fastest way to lose the sale.

Pointing the Search Bar at products only takes one setting, and product results come back with prices and short descriptions attached.

For every Search Bar setting in one place, see the Search Bar guide.

Before You Start

  • Edition: Free. Measured with Nexter Blocks Pro deactivated, the Search Bar renders identically — form, input, dropdowns, suggestions and results all work without Pro.
  • Block to enable: Search Bar, switched on under Nexter > Blocks in your WordPress dashboard.
  • WooCommerce active, with published products. Product search is guarded: with WooCommerce inactive the block returns an error rather than an empty list.

Steps

  1. Select your Search Bar block, open Extra Option, and switch on Only for specific CPT.
The Search Bar block
  1. Set CPT Type to Products.
Choosing product as the searched type
  1. Turn on price and short description in the result settings, then publish.
Product result settings
  1. Search for a product on the real page.
Product results with price and short description

There is also a per-field post type source in Search Bar Fields, with a Post/Taxonomy toggle. Measured on 5.0.6: choosing Post there saves with no post type attached and has no effect on the search — no dropdown renders and results are not restricted. Only for specific CPT, used above, is the setting that actually works. Reported to the developers.

How It Behaves

Product results are not just posts with a different type. The block asks WooCommerce for the product object and renders its own price markup.

  • Results are restricted to products. Measured with Only for specific CPT set to Products: a term returned 3 products, while the same term unrestricted returned results across all post types.
  • The price is WooCommerce’s own. Measured on a discounted product, the card rendered the struck-through original beside the sale price, exactly as the shop pages do.
  • The short description renders as its own line, separate from the excerpt.
  • Hidden products stay hidden. Measured in the query: product searches always exclude the exclude-from-search and exclude-from-catalog visibility terms.
  • WooCommerce is required, and the block says so. With WooCommerce inactive the request returns an explicit error rather than an empty list.

Limitations

  • No WooCommerce means no product search. This is a hard requirement, not a degraded experience.
  • Variations are not searched individually. A search matches the parent product, not a specific size or colour.
  • SKUs are not matched by default. The enabled fields are the standard post fields; a SKU lives in product meta.
  • Out-of-stock products still appear unless you have excluded them from the catalogue in WooCommerce.
  • Only the title is matched by default, so a product findable by a word in its description needs content matching switched on.

Troubleshooting

The search returns an error instead of results

WooCommerce is not active. The block checks for it before running a product query and reports it rather than returning an empty list.

Prices are not showing on the cards

The price toggle is in the result settings and has to be switched on.

A product I can see in the shop is missing

Check its catalogue visibility. Products marked hidden from search are excluded deliberately.

Blog posts are still appearing

Check that Only for specific CPT is switched on and CPT Type is set to Products. The per-field post type source does not restrict anything (see the note above).

Related Docs

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What do I need before setting up WooCommerce product search in WordPress?

WooCommerce has to be active and you need published products, because Nexter Blocks treats product search as a WooCommerce query, not a generic post search. The page also notes the Search Bar renders identically with Nexter Blocks Pro deactivated, so this works on the Free edition. If WooCommerce is inactive, the block returns an explicit error instead of an empty list, which is a useful signal that the store layer is missing.

How do I stop blog posts from showing in WooCommerce product search?

The key setting is Only for specific CPT, with CPT Type set to Products. That is the setting that actually restricts results to products in Nexter Blocks. The page also calls out a trap: the per-field post type source in Search Bar Fields does not restrict anything, so it can look configured while still returning posts. That distinction matters when you want product-only results.

Why are prices missing from my product search cards?

Price output is controlled by the result settings, so if the price toggle is off, the cards will not show it. When it is on, Nexter Blocks renders WooCommerce’s own price markup, including sale formatting like a struck-through original price beside the sale price. That matters because the search card should match the shop page pricing style instead of inventing its own display.

Why does a product show in my shop but not in product search?

Catalogue visibility is usually the reason. The page says hidden products stay hidden, and searches always exclude items marked with exclude-from-search and exclude-from-catalog visibility terms. That means a product can still exist in the shop while being intentionally omitted from search results. If you need it searchable, its WooCommerce visibility has to allow search.

Does this work without WooCommerce active?

WooCommerce is required for product-only search. Nexter Blocks checks for it before running the query, and if WooCommerce is inactive it returns an explicit error rather than an empty list. That behavior is useful because it tells you the feature failed at the store layer, not because there were simply no matching products.

What are the main limits of WooCommerce product search here?

The search matches parent products, not individual variations, and SKUs are not matched by default because they live in product meta rather than the standard post fields. Out-of-stock products can still appear unless WooCommerce has excluded them from the catalogue, and only titles are matched by default unless content matching is switched on. For related setups, see Add AJAX search for WooCommerce products and Search WooCommerce products by category.

Last reviewed: September 27, 2026

Related Docs