Help with basic conditions
-
I’m trying to use widget logic to limited when a widget is shown. Here is what I have but it’s not fully working:
is_user_logged_in() && is_page(‘home’) || is_bbpress().
Basically I want the widget to only show when a user is logged in or when a user is logged in and is on either home page or bbpress pages.
So I’ve changed it to:
is_user_logged_in() || is_user_logged_in() && is_page(‘home’) || is_user_logged_in()&& is_bbpress()Is this right?
Thank you
- The topic ‘Help with basic conditions’ is closed to new replies.