Forums

members-only pages work, but show in menu (2 posts)

  1. Kodiak3000
    Member
    Posted 3 years ago #

    I've successfully Redwing Studio's template, but I'd like to make it so that the menu item for that page doesn't show up until they're logged in. I've Googled, and I've looked round here as much as I could, but can't find anything. Can anyone point me in the right direction?

    Cheers!

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    Could use the is_user_logged_in function and then based on whether or not logged in use the exclude parameter of the template tag, wp_list_pages().

    Of course, there might be a plugin that handles that:
    http://wordpress.org/extend/plugins/tags/restrict

Topic Closed

This topic has been closed to new replies.

About this Topic