• Resolved golded

    (@golded)


    hello everybody,

    I trying to display a widget in several product_category but it doesn’t work.

    This code works : is_product_category(‘fete-des-meres’)
    for only a category

    i tried this : is_product_category(‘fete-des-meres’,’fete-des-grand-meres’)
    but it doesn’t work.

    Any idea ?

    Thanks in advance.

    ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • stanoam

    (@stanoam)

    You’ve to put them into an array:

    is_product_category(array(‘fete-des-meres’,’fete-des-grand-meres’))

    You can also use the product category ID instead of the slug (no quotes, this time):

    is_product_category(array(25,31))

    Hope that helps.

    Thread Starter golded

    (@golded)

    thanks so much, this code works :

    is_product_category( array (‘fete-des-meres’, ‘fetes-des-grand-meres’ ) )

    (with spaces).

    Have a nice day !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘is_product_category display in several product_category’ is closed to new replies.