logged conditional content WordPress

<?php if (is_user_logged_in() ): ?>
	<a href="<?php echo wp_logout_url() ?>" title="Logout">Logout</a>
<?php else: ?> 
        <a href="http://example.com/wp-login.php" title="Logout">Member Login</a>
<?php endif ?>
The following two tabs change content below.

Leave a Reply

Your email address will not be published. Required fields are marked *