The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

go to main page after logging in (not dashboard) (5 posts)

  1. jrizos
    Posted 10 years ago #

    How can I change the page my users go to after logging in, from the dashboard to the main page?

  2. iwanknapen
    Posted 10 years ago #

    I don't think your users ever go to dashboard. That's only for you as admin.

  3. jrizos
    Posted 10 years ago #

    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.


  4. underhj
    Posted 9 years ago #

    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/';

  5. 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';

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

Topic Closed

This topic has been closed to new replies.

About this Topic