When a user is not logged in I am trying to show
Support || Log In
When they are logged out it should say
Support || Log Out
Here is the code I tried to use to get this to work
<div class="fr">
<ul class="rss">
<li><a href="http:/jfdfjdf.com/wp-login.php">Support</a></li>
<li><?php if (is_user_logged_in() ) { echo " <a href=" . wp_logout_url() . " title=\"Logout\">Logout</a>";}?></li>
<li><?php else if (!is_user_logged_in() ) { echo " <a href="fdjdjfd.com" title=\"Logout\">Member Login</a>";}?></li>
</ul>
</div>
But it is not working can anybody help me out?
What about the following?
I moved the php if statements so you don't get empty li elements. You should still do the escaping that others have noticed.
Your code has a syntax error:
You should escape the double-quotes: