Support » Plugin: Widget Options » Widget logic doesn’t work

  • Resolved slv96


    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)
  • Plugin Author phpbits


    @slv96 try this !is_single( array('3773','3774','4137') ) . Let me know how it goes. Thanks!

    @phpbits Still doesn’t work 🙁

    Fixed using “is_product_category” instead of “is_single”.

    • This reply was modified 11 months, 1 week ago by  slv96.
    Plugin Author phpbits


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


    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.