WooCommerce Product Visibility: Mastering 'Search Results Only' Products
Managing a large WooCommerce store with thousands of products often requires nuanced visibility strategies. The recent query from Da on the WordPress support forum, titled "Shopping settings products on only searchresults," highlights a common challenge: how to effectively locate and manage products configured to appear "only search results" – hidden from standard shop pages but discoverable via search engines and direct links.
Da's store, with its tens of thousands of products, had intentionally set several thousand items to this "only search results" visibility. This choice is strategic, keeping shop pages uncluttered while ensuring niche or discontinued items retain their SEO value and can still be purchased by users actively searching for them. The core problem arose when Da needed to identify and manage these specific products within the WooCommerce admin, asking: "How can we see the products that are on only search results?"
Understanding WooCommerce Product Visibility Settings
WooCommerce provides distinct catalog visibility options for each product:
- Shop and search results: Default, visible everywhere.
- Shop only: Visible on shop pages, hidden from search.
- Search results only: Hidden from shop pages, visible in search. This is Da's scenario.
- Hidden: Completely hidden from shop and search, accessible only via direct URL.
The "Search results only" setting is invaluable for managing large catalogs, handling special promotions, or retaining SEO for items no longer prominently featured.
The Solution: Locating 'Search Results Only' Products in the Admin
Identifying products set to "Search results only" within the WooCommerce admin is straightforward using the built-in filtering capabilities:
Step-by-Step Instructions:
- Access Products: Log into your WordPress admin and navigate to WooCommerce > Products.
- Locate Filter: Above the product list, find the filter options. Look for a dropdown menu, often labeled "All products" or similar, that reveals additional filtering choices.
- Select 'Catalog visibility': Within the extended filter options, locate "Catalog visibility."
- Choose 'Hidden': Select the "Hidden" option from the "Catalog visibility" dropdown. While the product setting is "Search results only," WooCommerce categorizes these products under "Hidden" in the main product list filter because they are hidden from the primary shop catalog.
- Apply Filter: Click the "Filter" button to display only products with this specific visibility setting.
This process allows store owners to quickly isolate, review, and manage products that are not displayed on standard shop pages.
Programmatic Identification for Advanced Users
For developers or large-scale operations requiring automated audits, understanding the underlying data structure is key. WooCommerce stores product visibility using the product_visibility taxonomy. Products set to "Search results only" are associated with the exclude-from-catalog term within this taxonomy. This means they are excluded from main shop and category archives but remain queryable by search.
A custom WP_Query could be used to retrieve these products, targeting the product_visibility taxonomy and the exclude-from-catalog term. This method offers flexibility for custom reporting, bulk updates, or integration with external systems.
Strategic Benefits & Best Practices
Utilizing "Search results only" products offers significant advantages:
- Enhanced UX: Reduces clutter on main shop pages, improving customer browsing.
- SEO Preservation: Maintains search engine visibility for niche or legacy products.
- Flexible Management: Ideal for managing seasonal, low-stock, or unadvertised items.
To prevent future management hurdles:
- Regular Audits: Periodically review products with non-standard visibility.
- Internal Naming/Tagging: Use specific tags or internal notes to clearly mark products with unique visibility settings.
- Documentation: Maintain clear records of why certain products are set to "Search results only."
In conclusion, the "Search results only" setting is a powerful tool for sophisticated WooCommerce stores. By leveraging the admin's filtering capabilities or understanding the underlying programmatic structure, store owners like Da can efficiently manage their extensive product catalogs, ensuring both optimal user experience and search engine discoverability.