WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
[resolved] Combination of separate conditions not working (2 posts)

  1. bizpower
    Member
    Posted 1 year ago #

    I have 3 separate conditions.
    I only want it to show on my forum pages, which are /questions and /questions/*. I couldnt get the * to work for any and all pages after /questions, so I just did this:
    I made it so it only showed when a user was logged in.
    That worked great!

    Until...I added false conditions to keep it off certain pages.
    I have this in the box
    is_user_logged_in()
    !is_page('contact')
    !is_page('subscriptions')

    It works until I add the !is_page conditions. Then, those work and the is_user_logged_in() breaks and all I see is the default page nav in the side bar of my forum, instead of the forum categories, which is what I need on every page from /questions on out.
    Any help for me out there?

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

  2. bizpower
    Member
    Posted 1 year ago #

    I figured it out.
    I have to do it like this

    is_user_logged_in() &&
    !is_page('contact') &&
    !is_page('welcome')

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic