WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
Where am I wrong ? (combine 2 conditional tags) (2 posts)

  1. Lolu
    Member
    Posted 1 year ago #

    Hi,
    Thanks for this great plugin !

    I am trying to combine different conditional tags but it is not working, could you please help me finding my mistake ? Many thanks ;)

    Here is the code that does not work (does not display at all)

    is_page('test') && in_category( array('Dossiers a', 'Communique b'))

    I want the widget to be displayed on the page test and in the category "Dossiers a" and "Communique b".

    Many thanks for your help

    http://wordpress.org/extend/plugins/widget-logic/

  2. Lolu
    Member
    Posted 1 year ago #

    OK Just found it, just needed to put || instead of &&

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.