Skip to:
Content
Pages
Categories
Search
Top
Bottom

On logout, page redirects to WP Login

Viewing 5 replies - 1 through 5 (of 5 total)
  • Avatar of patty.fresonke
    pfrey
    Participant

    @pattyfresonke

    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.

    Avatar of dcavins
    dcavins
    Participant

    @dcavins

    Hi Patty-

    Have you tried using `home_url()` instead of `site_url()` like the example on the Codex: http://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

    Avatar of dcavins
    dcavins
    Participant

    @dcavins

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

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

    Avatar of dcavins
    dcavins
    Participant

    @dcavins

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

    Avatar of patty.fresonke
    pfrey
    Participant

    @pattyfresonke

    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)

You must be logged in to reply to this topic.