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.
<ul> <?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; ?> </ul>
Appreciate any help.