Viewing 4 replies - 1 through 4 (of 4 total)
  • I don’t think your users ever go to dashboard. That’s only for you as admin.

    Thread Starter jrizos

    (@jrizos)

    They do, but I found the fix!

    Round about line 170 in your wp-login.php file, you will see this:

    $redirect_to = ‘wp-admin/’;

    Change that bad boy to this:

    $redirect_to = ‘index.php/’;

    Should work ya fine.

    http://wordpress.org/support/topic/72039?replies=3

    WordPress 2.1.1

    I wanted logged in users to avoid Dashboard and go to Write Post.

    Line 290 rem it out and insert new redirect to wherever:

    $redirect_to = ‘wp-admin/post-new.php’;
    // $redirect_to = ‘wp-admin/’;

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    A somewhat nicer way (no core editing):

    function change_login_redirect()
    {
    global $redirect_to;
    if ($redirect_to == 'wp_admin/') {
    $redirect_to = 'whatever_you_want.php';
    }
    }
    add_action('login_form','change_login_redirect');

    Stick that in your theme’s functions.php file or in a plugin or what have you, and voila.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘go to main page after logging in (not dashboard)’ is closed to new replies.