This is probably easy, but I haven't had much sleep. When the user opens my web page, the sidebar must only display the Login Meta section. After a user logs in, all the menu's must display.
I looked for plugins to hide menus but without success. The only things all these types of plugins does is hide posts and pages. I need the entire menu to be hidden until logged in.
I have thought of creating a sidebar2.php file with just the Meta content and then sidebar.php will have everything in it. Would anybody know the php code to display sidebar2.php if logged out? and display sidebar.php if logged in? Should that php code be added into the index.php?
Vladimir’s WordPress Forum
Sidebar Control
8:24
20 May, 2009
Werner
Hi,
This is probably easy, but I haven't had much sleep. When the user opens my web page, the sidebar must only display the Login Meta section. After a user logs in, all the menu's must display.
I looked for plugins to hide menus but without success. The only things all these types of plugins does is hide posts and pages. I need the entire menu to be hidden until logged in.
I have thought of creating a sidebar2.php file with just the Meta content and then sidebar.php will have everything in it. Would anybody know the php code to display sidebar2.php if logged out? and display sidebar.php if logged in? Should that php code be added into the index.php?
Any help regarding this will be appreciated.