Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Reply To: Quirk redirect after login

Discussion in 'Misc WordPress Requests' started by fibbo8, Jan 13, 2018.

  1. fibbo8

    Guest

    Reply To: Quirk redirect after login, by fibbo8

    Hi Belly!

    Thank you for your reply.
    I tried your snippet for a page and it works perfectly.
    I’ve tried to modified it, because of the structure that I’ve on the test site.
    My idea was to create some pages accessible only by logged user, but those page haven’t necessarily to be under the same path.
    For example I can have http://www.testsite.com/private-page and http://www.testsite/company/private-page

    So I tried to change the $url = home_url(‘/members-only/’); in $url = get_previous_posts_link(); because the user can login both from http://www.testsite.com/private-page and http://www.testsite/company/private-page.

    But in this case the redirect drive to the backend profile.

    Reply To: Quirk redirect after login
     
    #1

Share This Page

Monarch Social Sharing Plugin