• Resolved slv96

    (@slv96)


    Hi,
    I use this plugin to hide widgets in some woocommerce product category.
    This is an example of the code I use:
    !is_single( array(3773,3774,4137) )

    But it doesn’t work. Please can you help me?

Viewing 4 replies - 1 through 4 (of 4 total)
  • @slv96 try this !is_single( array('3773','3774','4137') ) . Let me know how it goes. Thanks!

    Thread Starter slv96

    (@slv96)

    @phpbits Still doesn’t work ??

    EDIT:
    Fixed using “is_product_category” instead of “is_single”.

    • This reply was modified 7 years, 5 months ago by slv96.

    @slv96 Perfect! Really glad that you’ve figured it out. I hope you are loving the plugin features. Thanks again for choosing Widget Options.

    Hello!

    I’m trying to display widgets in multiple woocommerce product category pages but doesn’t work. Kindly help. I’m using the code below. Though using single category works.

    is_product_category( ‘chemicals’ ) || is_product_category( ‘systems’ )
    is_product_category( array( ‘chemicals’, ‘systems’ ) )

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Widget logic doesn’t work’ is closed to new replies.