Skip to:
Content
Pages
Categories
Search
Top
Bottom

On logout, page redirects to WP Login

Viewing 5 replies - 1 through 5 (of 5 total)
  • @pattyfresonke

    Participant

    I’ve seen some other tickets from a long time ago, but didn’t want to re-open a dead ticket. But none of them seemed to be resolved. If anyone can help me I’d really appreciate it.

    @dcavins

    Keymaster

    Hi Patty-

    Have you tried using `home_url()` instead of `site_url()` like the example on the Codex: https://codex.wordpress.org/Function_Reference/wp_logout_url#Logout_and_Redirect_to_Homepage

    I use this on my site and it redirects to the home page:
    `<a href="” title=”Log out”>`

    -David

    @dcavins

    Keymaster

    Well that code bit got mixed up, let’s try that again:

    `<a href="” title=”Log out”>`

    @dcavins

    Keymaster

    Still didn’t work. Available here: http://pastebin.com/ZtFWhqyg

    @pattyfresonke

    Participant

    Yeah, I ran across that webpage and I did try using home_url() and still had the same redirection after logging out.

    I found the Peter’s Login Redirect plugin today, and it worked for me. It’s a little overkill for what I need it for, but it’s the only thing I could do to make it work!

    So if you have any other ideas, I’m open to them, otherwise I suppose I will be using the extra plugin.

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘On logout, page redirects to WP Login’ is closed to new replies.
Skip to toolbar