Support » Plugins » [Plugin: WP-UserLogin] How can I direct them to a specific page after login

  • Hi, I’d like to have my members login then go to the most current posts. The challenge is I use a static welcome page not the most recent post as my homepage.

    So first time visitors get my welcome message then register or log in then go to the current post page.

    THanks

    Dan

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you change line 161 from this
    $form = "<form name=\"loginform\" id=\"loginform\" action=\"". $wp_url ."/wp-login.php\" method=\"post\">
    to this
    $form = "<form name=\"loginform\" id=\"loginform\" action=\"". $wp_url ."/wp-login.php&amp;redirect_to=".urlencode('[desired page]')."\" method=\"post\">

    Of course, replace [desired page] with your actual desired page. That should solve it. Thanks for this post, I’ll probably look into this as an option on the next release.

    I just released an update. It’s for 2.7 only, but it does solve your problem.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-UserLogin] How can I direct them to a specific page after login’ is closed to new replies.