WordPress.org

Ready to get started?Download WordPress

Forums

Menu Item Visibility Control
[resolved] Logged Out menu (7 posts)

  1. curlyrip
    Member
    Posted 1 year ago #

    Hi,

    Firstly fantastic plugin does exactly what I need it to, and it plugs into gantry with ease, ace!

    I have worked out how to hide a menu link from a logged out user.

    My only question is how would one hide a menu link from a logged in user?

    http://wordpress.org/extend/plugins/menu-items-visibility-control/

  2. shazdeh
    Member
    Plugin Author

    Posted 1 year ago #

    You could use a condition like this:
    ! is_user_logged_in()

  3. curlyrip
    Member
    Posted 1 year ago #

    Thanks Shazdeh

  4. lunchgirl
    Member
    Posted 1 year ago #

    This plugin causes my whole site content to disappear and just leaves the black footer bar at the top of the page.

    Nofyah

  5. shazdeh
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    what's the text of the logic you're using? I mean, what do you enter in the visibility box for the menu item?

  6. lunchgirl
    Member
    Posted 1 year ago #

    ! is_user_logged_out()

    I have menu items I want to hide from logged out users.

  7. shazdeh
    Member
    Plugin Author

    Posted 1 year ago #

    The problem is that is_user_logged_out function does not exists, so it's throwing error and killing the page render process. To show the menu only to logged in users, try this logic:
    is_user_logged_in()

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic