• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WP Desk = premium plugins for WordPress & WooCommerce
  • Plugins
        • Checkout & OrdersMake your work easier and automate the orders. Adjust the order form to your needs and make it more useful to your customers. Print order labels directly from WooCommerce. Put the orders in order using our plugins. Find out how to streamline the procurement process in your store.
          • Flexible Checkout Fields
          • Active Payments
          • Automatic Payment Status
          • Flexible Refund and Return Order
          • Print Orders and Address Labels
          • Flexible Subscriptions Recurring Shipping
          • Flexible Subscriptions Payment Retry
          • Flexible Subscriptions Stock Management
        • ProductsThese plugins will help you manage your WooCommerce products. Here you will find the plugins to import and update products from XML or CSV files. Then you can change the product unit of measure, show the lowest price in the last 30 days (Omnibus Directive), or let customers name the product price!
          • Flexible Product Fields
          • Dropshipping Import Products
          • Dropshipping FTP Import Products
          • Dropshipping Export Products
          • Custom Price
          • WP Desk Omnibus
          • Flexible Quantity Calculator
          • Dropshipping Orders Export
        • MarketingPromote your store online. Add products from your shop to price comparison websites directly from WooCommerce. Acquire new customers and communicate with your existing ones. Build a customer base and communicate with clients using one of the most effective marketing tools, namely e-mail marketing. Check out our promotional tools!
          • Flexible Pricing
          • Flexible Wishlist - Analytics & Emails
          • OLX WooCommerce
          • Flexible PDF Coupons
          • ShopMagic
          • Flexible Invoices
  • Bundle🔥
  • WP Desk Care
  • Support
  • Blog
  • My Account
  • 0

More results

Hide products and product category in WooCommerce (complete tutorial)

Tech Posts, WooCommerce import products, WooCommerce tutorials

Tomasz Bednarek5 minutes readUpdated: 2024-10-29Updated: 2025-08-20
blog category heading image

Sometimes, you don’t want to show some products or data in your WooCommerce. In this article, you’ll learn how to hide products, whole product categories, or specific product data in WooCommerce. I have tried to get the most important tips for this topic with examples 🙂!

Contents

  • How to hide product categories in WooCommerce
    • Remove product category in WooCommerce
    • Adjust the WooCommerce shortcodes - exclude categories
    • Customize WooCommerce display/ theme options
  • Hiding specific products
    • Show specific products based on IDs
    • Hide all WooCommerce products except featured ones
    • Hide WooCommerce products based on attribute, tag, and category
  • Remove related products
    • Use CSS
    • Customize the template
    • Remove the Related Products action
  • Hide product price, SKU, or category on the product page
    • Use CSS
    • Customize the template
    • Remove WooCommerce action
  • How to bulk change product data in WooCommerce
    • Dropshipping Import Products for WooCommerce
  • Summary
    • Related Articles
  • WooCommerce shortcodes & blocks - the complete list with examples
  • How to change the WooCommerce shop page (options & customization)
  • WooCommerce Products - The basics of e-commerce product management
  • WooCommerce bulk price update (programmatically and with a plugin)
  • How to import WooCommerce products with categories?

How to hide product categories in WooCommerce

Let’s start with bigger puzzles 🧩🙂. You may want to hide the whole product categories in WooCommerce for testing or temporary development actions. No matter the reason, you can use the built-in theme/ Woo settings, adjust WooCommerce shortcodes to show products only from categories you want or use custom code, a plugin, or a combination of these options.

Remove product category in WooCommerce

If you want to hide a certain category for your products, and will not use that category in the future, the fastest solution would be deleting the WooCommerce product category entirely ❌.

Delete WooCommerce product category

You can use bulk actions if you need to delete several categories at once. Your products will be transferred to a default category, but of course, you can change the default category before deleting a category so that products end up in the category you want ↪️.

Make a default product category

Similarly, you may hide some WooCommerce product categories by changing the category name, making it a child category so it’s no longer a parent category 🙂.

Hide WooCommerce category by making it a child category

Adjust the WooCommerce shortcodes - exclude categories

You may also hide product categories in WooCommerce by modifying the shortcodes. Of course, if you use WooCommerce shortcodes on your posts or pages to show products.

For example, you can show all products but omit those from one or more categories by using the shortcode: products category="food, another-category, general" cat_operator="NOT IN" orderby="rating" order="DESC" limit="4" columns="2":

Use a WooCommerce shortcode inside a post to show specific products

Shoppers will see products from all categories except those three I added in the shortcode.

Hide products from selected WooCommerce product categories by a shortcode

It’s also possible to show the list of selected categories with the product_categories ids="" columns="4" shortcode (I've chosen two category IDs in my examples):

Show two categories using a shortcode

You can find the ID of each WooCommerce product category by hovering the Edit link in Products → Categories inside the shown URL (look for the value of tag_ID).

💡 Hint: Read more about WooCommerce shortcodes.

Customize WooCommerce display/ theme options

The last option, if you don’t want to use a plugin or custom code, is to use the theme options. Go to the Appearance → Customize (I use Storefront in my example).

Customize your theme

Then, go to WooCommerce → Product Catalog and choose what to display on the shop page and category page by default.

Customize product catalog - theme options

Of course, you have better control with WooCommerce shortcodes or renaming/ deleting the specific product category. You can also add custom code, for example, to the theme’s functions.php file to hide products from showing in your store entirely by hooking to WooCommerce Product Query 💪.

Hiding specific products

To hide some WooCommerce products from default store pages, you can move them to trash (they can be restored so they are not deleted entirely) 🗑️.

Hide WooCommerce products by moving them to trash

You may also change the product visibility to “hidden” so that default pages won’t show them 🤫.

Hide a WooCommerce product with a Catalog visibility option

It’s also possible with the Quick Edit option and by editing more products at once.

Hide WooCommerce products from the catalog

If you use the WooCommerce shortcodes you can decide which products to show by using ids, skus, visibility, or hide products based on the specific attribute (and its terms), tag, or category with NOT_IN for terms_operator, tag_operator, and cat_operator. Let’s see 3 examples of the shortcode to modify the products you show/hide in WooCommerce.

Show specific products based on IDs

First, you can use the products ids="100,120,140" shortcode to show only those 3 products. You can find the product ID by hovering the product on the product list in WooCommerce.

Get the WooCommerce product ID

Hide all WooCommerce products except featured ones

Next, you can use the shortcode to show only featured products: products visibility="featured", for example, if you want to share the best items in a blog post. You can find which products are featured in the product list in WooCommerce:

Featured products in WooCommerce

Hide WooCommerce products based on attribute, tag, and category

Finally, you can use the products shortcode with some parameters to hide products with some attributes, tags, or categories. Use products attribute="Size" terms="Large" terms_operator="NOT_IN" tag="imported" tag_operator="NOT_IN" category="food" cat_operator="IN" to hide large products or products with the tag “imported” and those from categories other than “food”.

Hide WooCommerce products based on product attribute, tag, or category

💡 You may also read how to use WooCommerce attributes or a visual alternative with the Flexible Product Fields free plugin.
❓Haven’t you found a way to hide WooCommerce product categories and products? In that case, let me know, so I can add a solution for you 🙂.

Remove related products

Sometimes you want to hide the Related Products section from displaying on the product page. There are 3 options to hide the Related Products section from the product page 🎉.

Use CSS

The first one is quite easy. Add the section.related.products {display:none;} to the theme’s CSS, for example in Appearance → Customize → Additional CSS.

Remove the Related Products section in WooCommerce

It may also be possible to use your theme settings - look for the Related Products section.

Customize the template

If you have access and would like to do that 😀, you can adjust the product template inside your theme (or child theme) and delete the Related Products section there. Of course, you will not have to hide it with CSS then. This approach will be better for optimizing (less code and nice HTML structure). Some themes can overwrite the default layout too.

Remove the Related Products action

Finally, you can remove the action to generate Related Products from the single product pages with the code below (add it to your theme’s functions.php - remember about it after changing or updating your theme). I have also given you a code to hide upsell products 🙂.

remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 );

Remove Related Products with a code

In my opinion, this option is the fastest way to hide the Related Products section 🌬️.

Hide product price, SKU, or category on the product page

The last issue related to hiding products I wanted to show you is removing specific information from the product page. For example the product price, SKU, or its category.

You can do this similarly to hiding the Related Products section by one of the following methods ⬇️.

Use CSS

The simplest way, and quite effective, is to hide the product price, SKU, and category with the appropriate CSS declaration. For example, to hide the product price (I don’t know why you’d like to do that 🤔) you could use: body.single-product p.price {display:none;} or even in detail for regular and sale prices: body.single-product p.price del {} and body.single-product p.price ins {}.

💡 Hint: You can use the CSS to change the price color, font, or padding.

To hide SKU, tags, or product category, it would be best to hide the meta elements with CSS: .single-product div.product .product_meta .sku_wrapper, .single-product div.product .product_meta .posted_in, .single-product div.product .product_meta .tagged_as {display:none;}

As you can guess, you could hide only one or two meta elements using the selected part of the CSS declaration 🙂 e.g. .single-product div.product .product_meta .posted_in, .single-product div.product .product_meta .tagged_as {}

This approach is quite efficient and fast. In my example, I wanted to show only the product SKU. As previously mentioned, add the custom CSS code to the style.css, theme’s CSS editor, or Additional CSS in the Appearance → Customize.

Remove a product category and tag from the product page with CSS

Customize the template

You can also adjust the PHP template files in your theme (child theme) and remove/ manage the information for the single product pages 💪.

Remove WooCommerce action

Finally, remove the whole meta section on the product page with a single line of code. Add it to your theme’s functions.php file (add it again after you change or update the theme) ♻️.

remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );

Hide product meta in WooCommerce by removing the action

This approach is not the best if you’d like to leave some part of the meta but you can always use a custom function in this action instead of removing it 🙂. To do that, use:

remove_action( 'woocommerce_single_product_summary', 'woocommerce_template_single_meta', 40 );

add_action( 'woocommerce_single_product_summary', 'your_custom_woocommerce_template_single_meta', 40 );
function your_custom_woocommerce_template_single_meta() { //custom code}

💡 Hint: WooCommerce uses the single-product/meta.php to output the product meta. See more in the WooCommerce code, for example, on GitHub.

How to bulk change product data in WooCommerce

By default, WooCommerce lets you update the product data fast with a Quick Edit/ Edit option on the Products screen.

If you’re interested in bulk updating product data or importing products to WooCommerce, I want to give you one more tip 😀. Use our free WooCommerce Product importer plugin to import and update products in minutes!

Import and update products in WooCommerce with a free plugin
Import and update products in WooCommerce with a free plugin
product mapper
Product Mapper
import options
Import Options

 

Download the free plugin!

Dropshipping Import Products for WooCommerce

Import and synchronize wholesale products with WooCommerce products. Add margin to the prices of imported products. Use conditional logic. Make your work easier.

💾 Active Installations: 700+ | WordPress Rating:

Download for free or Go to WordPress.org
WP Desk
Plugins used by 239,851+ shops
Works with WooCommerce 10.6 - 11.0
💡 Hint: I just wanted to mention the topic here. Read more on how to import and update WooCommerce products with the free plugin ➡️.

Summary

Today, I’ve shown you how to hide products, product categories, and specific product data on the WooCommerce product page.

If you have any questions about hiding the category or our product importer plugin for WooCommerce leave a comment below 🙂.

Finally, I encourage you to read our blog posts, for example, about WooCommerce shortcodes, WooCommerce SEO, or WordPress design and development 🎉!

Related Articles

WooCommerce shortcodes (practical guide with the cart, checkout, products, shop, product, and login shortcode examples)

WooCommerce shortcodes & blocks - the complete list with examples

You may find many posts about WooCommerce shortcodes online. In this article, you’ll find the full WooCommerce shortcode list with screenshots. Quickl...
How to change the WooCommerce shop page (options and customization)

How to change the WooCommerce shop page (options & customization)

Being one of the standard WooCommerce pages, the shop page can come with additional settings. In this article, you may read about the WooCommerce shop...
WooCommerce product manager plugin guide

WooCommerce Products - The basics of e-commerce product management

Launching and running a WooCommerce shop is very simple in the long-term perspective. The beginnings are difficult in any field. To make a start easy ...
WooCommerce bulk price update programmatically and with a plugin

WooCommerce bulk price update (programmatically and with a plugin)

Fast changes in WooCommerce are crucial to run your store. The bulk price update for WooCommerce products is one of them. Today, I will show you how t...
Import WooCommerce products with categories

How to import WooCommerce products with categories?

Fast product import or updating products in WooCommerce should get all data including categories. Why? Because you don’t want to manually change each ...

5 minutes read25256 views

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tomasz Bednarek

Copywriter and Marketing Specialist

Author of numerous articles and educational materials created for WP Desk and related services focused on WooCommerce plugins (Flexible Invoices, F...

Powered by WP Desk

WP Desk brings you great WooCommerce plugins. We strive to save your time and money by speeding up your processes. Use our plugins to build a better store. Awesome support included in the package.

Premium WooCommerce Plugins →
WP Desk › Blog › WooCommerce tutorials › Hide products and product category in WooCommerce (complete tutorial)

Primary Sidebar

Contents

  • How to hide product categories in WooCommerce
    • Remove product category in WooCommerce
    • Adjust the WooCommerce shortcodes – exclude categories
    • Customize WooCommerce display/ theme options
  • Hiding specific products
    • Show specific products based on IDs
    • Hide all WooCommerce products except featured ones
    • Hide WooCommerce products based on attribute, tag, and category
  • Remove related products
    • Use CSS
    • Customize the template
    • Remove the Related Products action
  • Hide product price, SKU, or category on the product page
    • Use CSS
    • Customize the template
    • Remove WooCommerce action
  • How to bulk change product data in WooCommerce
    • Dropshipping Import Products for WooCommerce
  • Summary

Dropshipping Import Products for WooCommerce £79

Import and synchronize wholesale products with WooCommerce products. Add margin to the prices of imported products. Use conditional logic. Make your work easier.

💾 Active Installations: 700+ | WordPress Rating:

Add to cart or View Details
WP Desk
Plugins used by 239,851+ shops
Last Updated: 2026-07-22
Works with WooCommerce 10.6 - 11.0

Stay updated on our how-to articles

WP Desk news, WooCommerce tips, promo codes - right to your inbox.

By entering your e-mail, you agree to our Terms & Conditions and Privacy Policy.

By entering your e-mail, you agree to our Terms & Conditions and Privacy Policy.

Footer

WP Desk - WooCommerce Plugins

At WP Desk we create great WooCommerce plugins with awesome support. Save time and money with our e-commerce solutions. See how we can help you improve your e-store →

Secured by Comodo

WP Desk

  • About us
  • Giving Back
  • Blog
  • Get Support
  • Contact us

Products

  • Premium Plugins
  • WP Desk Care
  • Documentation
  • WooCommerce Invoices
  • Email Marketing
  • PDF Coupons

Legal

  • Terms & Conditions
  • Refund Policy
  • Support Policy
  • Privacy Policy

© 2026 WP Desk

We value your privacy

We use necessary cookies to make our site work. We'd also like to set additional cookies to understand site usage, enhance your browsing experience, and serve personalized ads or content. By clicking ‘Accept All,’ you consent to our use of additional cookies.

Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
  • Manage options
  • Manage services
  • Manage {vendor_count} vendors
  • Read more about these purposes
View preferences
  • {title}
  • {title}
  • {title}