I have a similar code that is working fine for me. Try putting your ids into an array like so:
$cat_args['exclude'] = array('12, 13');
Related Posts:
- Category menu that filters out empty categories
- Display All Products by Category with WooCommerce
- Woocommerce get category image full size
- exclude category from get_posts?
- Exclude categories from Loop, queries, widgets, post navigation
- Reflect nested categories in appearance > menus
- Exclude Category From Home Page, Display Posts on It’s Own Page?
- Remove child products from woocommerce category page [closed]
- Exclude a category from the filed under list only on some templates
- Display WooCommerce product categories in a 4 columns custom menu [closed]
- How to select product category while adding new product in woocommerce? [closed]
- Use get_term_children to get the sub category of a parent category for the current post
- Remove word “Category” from WooCommerce product page [closed]
- Filtering search results
- WooCommerce change category url and product base
- Output link to category from WP_Query loop of woocommerce products
- display woocommerce all category title on home page
- Add Icons to the Product Category Sidebar Widget WooCommerce
- Add Product categories to WordPress menu without losing hierarchy
- Display “add to cart” button on every listing in product category page?
- How to get product count with respect to categories in WooComerce
- Custom page for WooCommerce’s /product-category/
- Getting categories id for all products in cart
- How to exclude posts from a category when using this particular format
- get_cat_ID() not wokring
- Display child categories in WooCommerce
- WooCommerce duplicate sub categories and product slugs
- WooCommerce IF statements not working
- Woocommerce category show subcategories only/omit posts for specific category
- Warning: sizeof (): Parameter must be an array or an object that implements Countable, On products pages
- products nested by subcategories in a current category archive
- WC 3.x Get categories from variable product of the cart
- I need to create a search form that will display search results from specific category
- Multiple Domain Names – One WP Install (non-Multisite) – Default Each Domain name to Product Category WooCommerce
- Hide woocommerce category name from specific pages
- Pagination not visible on woocommerce’s category page
- Remove product category placeholder image (Woocomerce)
- Categories for each brands
- Change thumbnail image depending product category
- Unwanted Duplicate Product Categories in WooCommerce
- Woocommerce custom category pages
- Customize WordPress widget – Product Category
- WordPress/Woocommerce only show category in shop to a single role
- WooCommerce – How to show specific category first-rest of products-specific category last
- Display single category name in woocommerce loop
- Building Menu from Woocommerce Product Categories
- woocommerce related products by specific categories [closed]
- Functions.php: Exclude Category from “Blog”
- List just subcategory and products of active category page in Woocommerce
- why get_the_post_thumbnail( the_ID()) echos extra post id
- Filter WooCommerce archive pages by an additional category
- Custom tax_query filter not working for Woocommerce product categories
- How do order product categories – on a parent category page – in Woocommerce?
- Remove any product that is featured from regular display loop [WooCommerce]
- Template for product-category page [closed]
- How to exclude posts from category posts count
- Exclude all subcategories in the_category (post)
- I need to exclude from a query a category and a few custom taxonomies
- Exclude categories by ID
- Homepage custom recent news
- Exclude the category in WordPress
- displaying the last product comment in the woocommerce category
- exclude certain categories form archive widget
- Woocommerce only display child category when parent is checked (on add new product page)
- Conditional label Woocommerce archive [unsolved]
- Show audio player only in specific post type category
- How to set acf color field as background color to product category
- How to target all woocommerce categories that don’t have any subcategories in them?
- In if…else condition, the else statement shows even if if statement is correct
- How can I display all products from all categories on one page with woocommerce?
- Exclude a category and post_type from wp_query
- How to add all subcategories as submenu in WordPress menu
- How to edit woocommerce sub-category page
- WordPress category title not update in navigation menu
- selecting categories that have products with tag/category
- Restrict retrieved terms by category?
- Woocommerce Category Sort Dropdown
- Woocommerce: all products of all categories instead products of one category
- How to load terms of a custom taxonomy of a product in woocommerce cart page
- How to get WooCommerce Product Categories and its children’s children?
- Woocommerce change tag_id to name
- set a parent category in a product woocommerce
- woocommerce – products by category slug? [closed]
- Problems with explode [closed]
- Exclude Category From Home Page, Display Posts on It’s Own Page?
- How to have a category not show up in query post with page panigation?
- Call function on a single page
- WooCommerce category display in custom page
- Sorting Woocommerce products by category and attributes
- Woocommerce custom taxonomy order
- Update wordpress menu with woocommerce products
- How to get Woocomerce categories count
- Get all categories
- How to define category ID in an array?
- Restricted category in Woocommerce [closed]
- Products showing up in subcategory when they shouldn’t
- Adding 400 product categories with their hierarchy to a navigation menu
- Exclude category when displaying all categories assigned to a post
- What would be the easiest way to show subcategories under specific parents as text links only?
- How can I display the category descriptions below the category name using a functions.php filter?