Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to hide a page when user is logged in?


  • glittereyes
    Participant

    @glittereyes

    Hi,

    In buddypress when I create a page, it appears in the navigation menu. I want some or specific page to be hidden when users are logged in already. How do I do that? Thanks!

Viewing 1 replies (of 1 total)

  • techguy
    Participant

    @crashutah

    Modify header.php in your theme. I think it’s wp_list_pages or something like that which lists the pages. Use is_user_logged_in() for the if statement to choose when to display the pages.

Viewing 1 replies (of 1 total)
  • The topic ‘How to hide a page when user is logged in?’ is closed to new replies.
Skip to toolbar