• Resolved antoine69

    (@antoine69)


    Hi,
    Is there a way to exclude categories from the New Products Woocommerce shortcode.
    It seems this code:
    [products limit=”8″ columns=”4″ category=”hoodies, tshirts” cat_operator=”NOT IN”]
    doesn’t not exclude hoodies, tshirts categories.
    Of course, I’ve changed with my own categories, but it’s the same code and it doesn’t work.
    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Are you sure you copied it correctly:

    [products limit=”8″ columns=”4″ category=”hoodies, tshirts” cat_operator=”NOT IN”]

    The ” in your example is wrong!

    products limit=”8″ – correct
    products limit=”8″ – incorrect

    Thread Starter antoine69

    (@antoine69)

    Thank you,

    I copy/paste the following code from the Windows pad:
    [products limit=”8″ columns=”4″ category=”hoodies, tshirts” cat_operator=”NOT IN”]
    It’s not working. Could you check from your end please ?
    Thanks

    Thread Starter antoine69

    (@antoine69)

    The ” become ” while posting on this site.

    It works ok on mine – try manually changing all of the ” after you’ve copied it – they should be Shift+2

    Thread Starter antoine69

    (@antoine69)

    hoodies et tshirts are the slug, not the category name ?

    Thread Starter antoine69

    (@antoine69)

    It works , sorry, I was not targeting the good category.
    Cheers

    Thread Starter antoine69

    (@antoine69)

    Fixed

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Exclude categories from the New Products Woocommerce shortcode’ is closed to new replies.