Conditionally hiding navigation links?
-
I’ve done some searching, both online and here in the fora, and I’m uncertain how to do what I want ??
What I’d like to do is hide/reveal a portion of the blog’s masthead, depending on whether or not the viewer is logged in as an admin, or not. I had hoped there might be a conditional tag the would do the trick, but I don’t think so. I’d like to do something like.
if (is_admin())
{
*block of code here*
}
endif;Basically I’d like to show/hide the “add post” link, as well as links to other software packages and control panels installed on my web server: things that *I* use, but no one else really needs access to.
Anyone have any ideas?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Conditionally hiding navigation links?’ is closed to new replies.