Support » Fixing WordPress » Login redirection not working. Am I doing it right?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Maybe this will work….

    <?php
    echo '<a href="'.wp_logout_url(get_bloginfo('url')).">Logout<span></span></a>';

    Thanks, but no 🙁

    It just redirects me straight back to the home page, not even showing the login form. No matter is it: get_permalink(5) or bloginfo('url')

    The link it outputs is: http://example.dev:8888/example/wp-login.php?action=logout&redirect_to=http%3A%2F%2Fexample.dev%3A8888%2F&_wpnonce=a0a724313f

    Works! Sorry for the last one 🙂

    And thanks!!!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Login redirection not working. Am I doing it right?’ is closed to new replies.