I created a nav for my mu site based on lists and css.
I'd like to be able to have certain links links shown based on whether the user is a visitor or member.
I did a search of if/else statements though this forum and the wp forum and didn't see an example that was specifically written for visitor/member...
Can someone please point me in the right direction?
(or if it's stupid easy..please post an example for me?)
Thanks
lunabyte
Member
Posted 18 years ago #
Like checking for if is_user_logged_in()?
"Like checking for if is_user_logged_in()?"
Yep..thats exactly it.. lol
Ok..here's the syntax I've been able to do so far.. it partially works..lol But it throws an "invalid markup" error in my editor.
<li <?php
if (is_user_logged_in())
{
echo "My Profile";
}
else
echo "Sign Up!";
}
?>
to reitierate..I'm trying to show a differnt link based on whether a person is a member or not.