Managing state in wordpress
Sometimes we want to display a different button for when you are logged-in and another for when you are not.. (See pictures)


a href=’/ wp-login.php”target=“new” class=“login”> login
<a href="http://chilligavva.com/wp-admin/%E2%80%9C%3C">/ wp-login.php?action=logout” target=“new” class=“logout”> logout </a>
<br clear="“all”" />
</logout></login>
Instead of styling the link classes, you can also just change the text message to say whatever you want.
Popularity: 42% [?]
Feedback Please!
Note: Your comments may take time to appear, as they are moderated for the first time..
All comments are followed.