Support » Plugins » Hide some page links for guests?

  • Hi!

    I would like to hide some page links for guests visiting my page. The pages itself is alredy hidden thanks to the plugin “member acess”. But the links is still visible in the menu.

    I belive the code below would work for me. But I’m looking for a plugin that can do the same thing. Would be a lot easier for me to maintain the site then.

    <?php if ( $user_ID ) : ?>
    <?php wp_list_pages('depth=1&title_li=&exclude=' ); ?>
    <?php else : ?>
    <?php wp_list_pages('depth=1&title_li=&exclude=5' ); ?>
    <?php endif; ?>

    Appreciate any help.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Hide some page links for guests?’ is closed to new replies.