Login Logout problem
-
Hi
I hv problem with logout.On click logout its go to php admin insted home page.Here is code below:
<?php if (is_user_logged_in()) { $user = wp_get_current_user(); echo 'Hi <strong><a href="#" rel="nofollow">'.$user->display_name.'</a></strong> | <a href="/wp-login.php?action=logout"">Logout</a>'; } else { ?> Please <strong><?php wp_loginout(); ?></strong> or <a href="<?php bloginfo('url') ?>/wp-login.php?action=register"> <strong>Register</strong></a> <?php }?>
Please help me…
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Login Logout problem’ is closed to new replies.