WooCommerce Products Not Showing: Which Rule Hides Them
Every product listing in WooCommerce applies its own mix of status, catalog visibility and stock rules. Find the listing, find the rule, then fix the data that rule reads.
Find which listing is missing the product, then check the rule that listing applies — the shop, a category, search, related products, a shortcode and a Product Collection block each filter differently. Most cases come down to four stored values: the post status, the catalog visibility, the stock status combined with "Hide out of stock items from the catalog", and the product_visibility terms WooCommerce derives from those settings when the product is saved.
What hides a product, and where
Listings do not read the product settings directly. When a product is saved, WooCommerce writes hidden product_visibility terms (exclude-from-catalog, exclude-from-search, outofstock, featured) and listings query those:
| Catalog visibility (Publish box) | Terms written | Shop and categories | Search | Product URL |
|---|---|---|---|---|
| Shop and search results | none | Shown | Shown | Opens |
| Shop only | exclude-from-search |
Shown | Hidden | Opens |
| Search results only | exclude-from-catalog |
Hidden | Shown | Opens |
| Hidden | both | Hidden | Hidden | Opens |
Stock adds one more term. A product whose stock status is Out of stock gets outofstock, and listings exclude that term only while WooCommerce › Settings › Products › Inventory › Out of stock visibility — "Hide out of stock items from the catalog" (woocommerce_hide_out_of_stock_items) is ticked.
Symptom → rule → where to check → fix
| Symptom | Rule that hides it | Where to check | Fix |
|---|---|---|---|
| Visible to you, missing for visitors | Post status Private (logged-in admins see private products in the shop), or a page cache | Products › All Products, status filter; a private browser window | Publish it; purge the page cache |
| Missing everywhere, including its URL | Status Draft, Pending or Scheduled | Products list, Status column | Publish, or wait for the scheduled date |
| Missing from shop and categories, found by search | Catalog visibility "Search results only" or Hidden | Product editor, Publish box, Catalog visibility: | Set "Shop and search results" |
| Missing from search only | "Shop only" or Hidden | Same | Same |
| Out-of-stock items gone from shop, categories, product search and related | The hide setting plus the outofstock term |
Inventory settings, product Inventory tab | Restock, or untick the setting |
| Settings look right but product still missing | A stale product_visibility term after a direct database edit or a non-WooCommerce import |
Compare the product's settings with how it behaves | Re-save the product (bulk edit works) |
| Present in the shop, missing from one category | Not assigned to that category, or the category is set to show subcategories only | Product categories box; Appearance › Customize › WooCommerce › Product Catalog › Category display (classic themes) | Assign it; choose "Show products" |
| In the wrong place when sorting by price, or missing under a price filter | A missing or stale row in wc_product_meta_lookup |
WooCommerce › Status › Tools | Run Product lookup tables › Regenerate |
| Missing from an on-sale listing while the sale is live | The on-sale query reads the lookup table's onsale column |
Same | Same tool |
The stale-term row is the one most guides miss. The editor shows post meta; the shop queries terms. An SQL update to _stock_status, or an importer that bypasses WooCommerce's product save, leaves them out of step until the product is re-saved. The supported route is in importing products with CSV.
The lookup table holds price, stock, on-sale flag, sales and rating for sorting, the price filter and on-sale queries — not visibility, so regenerating it never unhides a Hidden product. For filter-specific failures see WooCommerce filters not working.
The shop page shows nothing
- WooCommerce › Settings › Products › Shop page (
woocommerce_shop_page_id). The product archive lives at that page's URL. If the option is empty or points at a deleted page, the archive falls back to/shop/and your "Shop" page is an ordinary page. - Block theme: the shop is rendered by the Product Catalog template (Appearance › Editor › Templates), not by the Shop page's content. Its default Product Collection block inherits the main query; one with its own query ignores the URL, sorting and the hide setting.
- Classic theme:
archive-product.phpor the theme's override runs the loop, and a page builder template can replace it. WooCommerce › Status lists outdated overrides.
If the page loads but says "No products were found matching your selection.", that message has its own walkthrough in no products were found matching your selection.
Shortcodes and blocks follow different rules
The [products] shortcode applies the same terms, and listing products by ID does not bypass them: its default visibility="visible" adds the shop's exclusions, so [products ids="…"] naming one Hidden and one out-of-stock product (hide setting on) returns nothing. An empty result prints a bare <div class="woocommerce columns-4 "> with no message. Attributes and caching: displaying products with shortcodes.
A Product Collection block with its own query filters stock from its own Stock status list, seeded from the hide setting when the block is inserted and saved with it. Changing the setting later does not update blocks already placed.
Related products not showing
wc_get_related_products() picks published products sharing a category or tag with the current one, excluding its upsells, anything with exclude-from-catalog, and out-of-stock items when the hide setting is on. The section is empty when the product is alone in its category with no shared tags, every candidate is an upsell or hidden, or the template dropped the related output (classic) or Related Products block (block theme).
Results are cached per product for a day in a wc_related_{ID} transient. After fixing categories, run WooCommerce › Status › Tools › WooCommerce transients › Clear transients.
In the cart
"… has been removed from your cart because it can no longer be purchased." means the product was unpublished or its price emptied after it was added. "Sorry, this product cannot be purchased." on add-to-cart, and a missing button on a simple product, both mean an empty price or an unpublished product.
Verify
- In a private window, load the shop, the category, a product search and a single product page.
- Sort the shop by price and apply a price filter. A product that sits out of order there, or drops out only under the filter, points to the lookup table.
- Re-save one affected product. If it reappears, its terms were stale; bulk-edit the rest.
- If only anonymous visitors miss it, purge the page cache and check the WooCommerce pages are excluded, per excluding a page from cache.
- After a WooCommerce upgrade, make sure no database update is pending, per WooCommerce database update not working.

Common mistakes
- Regenerating the lookup tables to fix a product whose catalog visibility is Hidden. The tool does not touch visibility.
- Testing as a logged-in admin, who sees private products and uncached pages.
- Expecting
idsin a shortcode to force hidden products to show. Usevisibility="hidden", which shows only products set to Hidden.
Frequently asked
- Related products are picked only from published products that share a category or tag with the current one, minus its upsells, minus anything hidden from the catalog, and minus out-of-stock items when "Hide out of stock items from the catalog" is on. A product that is alone in its category, or whose only matches are its own upsells, gets an empty section. The list is cached per product for a day.
- Listing products by ID does not bypass visibility. With the default visibility="visible", the shortcode still drops products set to Hidden or Search results only, and out-of-stock products when the hide setting is on. If nothing matches, it outputs an empty wrapper with no message.
- Only when "Hide out of stock items from the catalog" is ticked under WooCommerce › Settings › Products › Inventory. It removes them from the shop, categories, product search, related products and shortcodes. The product URL itself still opens, showing the product as out of stock.