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
- Retrieve Product category ‘NAME’ by product category ID – WooCommerce?
- Woocommerce get category image full size
- exclude category from get_posts?
- Exclude the category from the WordPress loop
- Exclude certain category from latest updates
- Exclude categories from Loop, queries, widgets, post navigation
- Programmatically create product category and add thumbnail in woocommerce
- List posts by category exclude current post
- wp_list_categories exclude not working
- Reflect nested categories in appearance > menus
- Create product category and keyword search form in woocommerce? [closed]
- Excluding a category from next and previous post links
- Exclude Category From Home Page, Display Posts on It’s Own Page?
- Remove child products from woocommerce category page [closed]
- How do I edit pre_get_post for the category the user is currently in?
- How to exclude categories from recent posts, recent comments & category widgets?
- 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]
- category description not showing in my woocommerce
- Conditional label Woocommerce archive [unsolved]
- Show audio player only in specific post type category
- How to make product image inherit from category image
- How to show given products only using product id array from specific category page in woocommerce
- Shop Category Pages missing s
- 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?
- WooCommerce REST API not returning the default products category
- In if…else condition, the else statement shows even if if statement is correct
- How to show WooCommerce Categories on ‘shop’ page instead of products?
- Show the parent taxonomy by creating shortcode in woocommerce?
- How can I display all products from all categories on one page with woocommerce?
- How to remove an item from a custom Walker_Nav_Menu
- 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
- When creating a new product, auto assign it to all custom taxonomy woocommerce
- Get WooCommerce product category list in functions.php
- in post content shortcode works, but hardcoded in same page template doesn’t?
- Is there a reason to put a product in both the Child and Parent Categories?
- WordPress category title not update in navigation menu
- WooCommerce showing active product categories on single product page
- selecting categories that have products with tag/category
- Restrict retrieved terms by category?
- How to fix 404 error in pagination in categories of woocommerce with common url base /shop/?
- How to display custom fields as table in Woocommerce
- How do I merge WooCommerce categories with the same name?
- Woocommerce Category Sort Dropdown
- Woocommerce: all products of all categories instead products of one category
- How can I exclude a particular category from my WordPress Page 1 and Page 2?
- How to delete WooCommerce categories in bulk that only have one product
- Product Category page showing all products
- How to load terms of a custom taxonomy of a product in woocommerce cart page
- product_cat image url from database
- How to get WooCommerce Product Categories and its children’s children?
- Woocommerce change tag_id to name
- Woocommerce product catalog, products with different description
- WooCommerce – Get products from category right before deleting category
- Exclude category from WP_Query args not working
- set a parent category in a product woocommerce
- No results found for second level category
- Displaying Category in sidebar post widget but not in the loop on home
- How to display products with multiple conditions, product_id and category_id
- Categories and Tags Conflict after Woocommerce Installation
- How to get related category/categories in WordPress archive page
- woocommerce – products by category slug? [closed]
- How can I add a Categories page link to a menu? [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?
- Customize category query in widget
- Custom Woocommerce Category view
- Call function on a single page
- Displaying categories and subcategories without link
- Excluding cateory not working on my site. how to solve this? [closed]
- 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
- Woocommerce – Display product category of product in Orders page
- Changing Woocommerce categories programatically
- Get all categories
- Woocommerce Force the category choice before creating new product? [duplicate]
- How to define category ID in an array?
- Categories and products woocommerce wordpress
- Function to reference post meta in place of category Woocommerce
- Add custom fields to Woocommerce Category Page
- Restricted category in Woocommerce [closed]
- category id (term_id) in url instead of slug
- exclude certain categories from the list at the end of the blog post
- 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
- How do we ReWrite HTACCESS to point a cat/subcat Product URL, to Cat/ only?
- 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?
- Change woo status automatically [closed]