• mattaudio

    (@mattaudio)


    I am looking to make it so that immediately after submitting a username and password to log in, a user is directed back to our homepage instead of the dashboard.

    Here’s the site – it is for our college newspaper, and we require people to login using their school account in order to comment on articles, and soon it will be necessary for voting and other uses as well. Therefore, there’s really no reason for them to get redirected to the dashboard. In addition, there’s a link to the “member center” (user options) on the top left of every page if they are logged in.

    Could anyone with more familiarity with the inner-workings of the system give me a hint? Thank you so much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Kafkaesqui

    (@kafkaesqui)

    You’ll have to edit the wp-login.php file for this. Be sure to make a backup copy…

    In wp-login.php you want to look for this section:

    if ( !isset( $_REQUEST['redirect_to'] ) )
    $redirect_to = 'wp-admin/';

    Change that second line to:

    $redirect_to = get_bloginfo('home');

    Thread Starter mattaudio

    (@mattaudio)

    That worked great… I am rather unfamiliar with the variables so I thought I would ask the experts. Thanks for your help!

    dss

    (@dss)

    This is a great solution to what I’d ben thinking about here.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How can I redirect logged in users back to my blog?’ is closed to new replies.