Jump to content


Photo

Hide Menu Items for Logged In Users Only

menus members only

Best Answer Danny , 15 March 2013 - 12:41 PM

You could try this plugin, although I haven't tested it personally.

 

http://wordpress.org...bility-control/

Go to the full post


  • Please log in to reply
4 replies to this topic

#1 wphostmanaged

wphostmanaged

    Member

  • Members
  • PipPip
  • 23 posts
  • LocationOttawa
  • Framework Version:Platform Pro and Pagelines Lite
  • Country: Country Flag

Posted 15 March 2013 - 04:11 AM

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?



#2 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 15 March 2013 - 04:44 AM

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.co...ers-guide/faqs/ there's a section on blocking content/pages about 4 entries down.



#3 wphostmanaged

wphostmanaged

    Member

  • Members
  • PipPip
  • 23 posts
  • LocationOttawa
  • Framework Version:Platform Pro and Pagelines Lite
  • Country: Country Flag

Posted 15 March 2013 - 11:53 AM

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.co...n-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? 


Edited by mysmallbizu, 15 March 2013 - 12:03 PM.


#4 Danny

Danny

    Is Awesome!

  • Moderators
  • 16342 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 15 March 2013 - 12:41 PM   Best Answer

You could try this plugin, although I haven't tested it personally.

 

http://wordpress.org...bility-control/



#5 wphostmanaged

wphostmanaged

    Member

  • Members
  • PipPip
  • 23 posts
  • LocationOttawa
  • Framework Version:Platform Pro and Pagelines Lite
  • Country: Country Flag

Posted 15 March 2013 - 01:56 PM

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







Also tagged with one or more of these keywords: menus, members only