Archived

This topic is now archived and is closed to further replies.

  • 0

Hide Menu Items for Logged In Users Only


Question

Posted · Report post

I'm using wp-members for my site with Pagelines Lite and want to know how to hide menu items so that they only display for logged in members?

 

Any suggestions?

Share this post


Link to post
Share on other sites

4 answers to this question

Posted · Report post

Hi there, that's something that the wp members plugin will do for you. Looking at their support docs it seems like you can do this in the edit page screen by selecting true/false into a custom field. Please see the wp members faq at http://rocketgeek.com/plugins/wp-members/users-guide/faqs/ there's a section on blocking content/pages about 4 entries down.

Share this post


Link to post
Share on other sites

Posted · Report post

I've got the content and posts protected thank... it's the menus only.  They are suggesting two menus, one for visitors and one for members

 

http://rocketgeek.com/tips-and-tricks/creating-menus-based-on-login-status/

 

the code they suggest to edit/replace in the header.php file specifically  is:

 

 

<?php wp_nav_menu( array( 'container_class' =>; 'menu-header', 'theme_location' => 'primary' ) ); ?>

 

which doesn't even exist in the pagelines header.php

 

So I'm stuck.  I was wondering if there was an easier way to do it? 

Share this post


Link to post
Share on other sites

Posted · Report post

That seems to work correctly. Thanks I didn't see that plugin

Share this post


Link to post
Share on other sites