Page 1 of 1
Hide menu item unless logged in
Posted:
June 21st, 2011, 2:41 pm
by mattar12
is there a way to hide a specific menu item unless the user is logged in? Right now the link still shows, but it takes them to the membership options page. I'd rather the link just not show.
Re: Hide menu item unless logged in
Posted:
June 21st, 2011, 4:41 pm
by diannemclean
I would like this feature as well - is it possible to add to the development updates?
Re: Hide menu item unless logged in
Posted:
June 22nd, 2011, 12:38 am
by Cristián Lávaque
This is in the development to-do list. In the meantime, you will need to the edit the template for that menu and edit it so it doesn't show items the current user doesn't have access to. WP Admin -> s2Member -> API / Scripting -> Using Advanced Conditionals or Advanced Query Conditionals
Re: Hide menu item unless logged in
Posted:
June 30th, 2011, 3:52 pm
by candy
hmm ... I just happen to need this too, but I do not understand what do you mean now with the "menu template" !??!
I have no such "menu template", just using the Wordpress 3.1.3 menu options, how can it be still done ?!?
Thanks!
Re: Hide menu item unless logged in
Posted:
June 30th, 2011, 6:07 pm
by BobTabor
Please check out this thread (especially the solution near the bottom):
viewtopic.php?f=4&t=10273It explains how to programmatically show or hide a menu item based on Membership Level (1 through 4) but could be modified to only check whether a user is authenticated or not. Hope this helps!