Peter's Login Redirect
Redirect to 1 of 2 pages depending on referring page? (2 posts)

  1. nicolaelvin
    Posted 3 years ago #

    I have a page that has links on it to login. This is the Events page. If the users clicks this link on the events page, I want them to be taken to the login page, and the login page then redirected BACK to the Events page. However for all other logins I want them to be redirected after login to the homepage.

    Is this possible?


  2. Peter
    Plugin Author

    Posted 3 years ago #

    Hi, you could actually use built-in WordPress functionality to achieve this by making the Events page link to the login page via a URL such as:


    In short, you can use a "redirect_to" GET variable to specify an exact redirect URL.

    There are many other ways to approach this, as outlined here:


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Peter's Login Redirect
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.