There are other ways around this, but my favorite solution ( most elegant I think ), is to have your theme implement two different Sidebars. In your theme file, usually inside the file "sidebar.php", you can do something like this:
register_sidebar(array ("name" => "Default Sidebar", "description" => "Visible to public."));
register_sidebar(array ("name" => "Member Sidebar", "description" => "Only for Members."));
- Code:
<?php
if(is_user_logged_in())
{
dynamic_sidebar ("Member Sidebar");
}
else
{
dynamic_sidebar ("Default Sidebar");
}
?>
Once you have that in place, you can manage everything gracefully through the Appearance -> Widgets menu in WordPress. The s2Clean Theme works like this. It also uses two separate menus for navigation as well.Statistics: Posted by Jason Caldwell — July 7th, 2010, 4:52 pm
]]>