• Resolved ladypop2012

    (@ladypop2012)


    As you know wordpress MU has the admin bar TAB called “MY SITES” if you drop down on this tab you will see ” THE MAIN BLOG SITE NAME: and “THE WORDPRESS USERS SITE NAME”

    I do not want to SHOW ” THE MAIN BLOG SITE NAME” in the mysites admin bar drop down menu.

    Choices im asking help on cause there are a few, either one ill be happy camper ??

    #1. How to remove The main blog from the mysites drop down.
    #2. How to create link that takes wordpress user to their admin dashboard

    ISSUE: I dont want users navigating to https://www.MainSite.com/admin
    I feel this area is confusing for the users and I do not want this.

    If I can accomplish either #1 or #2 from above this will be awesome.

Viewing 9 replies - 1 through 9 (of 9 total)
  • 1. remove users from the main site(wp-admin/users.php) so they are only members of their own sites.
    2.

    <?php $url = get_dashboard_url();
    echo $url; ?>

    Thread Starter ladypop2012

    (@ladypop2012)

    Thank you so much @david Sader for helping out… okay i want to take route #2. But when I place the php code it does not work cause its telling me

    Warning: Missing argument 1 for get_dashboard_url(),

    Seems like its conflicting with the same code being called casue I also see this in the error

    eval()’d code on line 1 and defined in /home/writemy/public_html/go/wp-includes/link-template.php on line 2260

    Have any idea what I need to do, can you tell me how to properly link this Echo so I can make a hyper link Text needs to say “My Dashboard

    Thanks a million

    Oops, you need the userid arg so it knows who’s dashboard to get.

    <?php
    if(is_user_logged_in()) {
    $user = get_current_user_id();
    $url = get_dashboard_url($user);
    echo '<a href="'.$url.'">My Dashboard</a>';
    }
    ?>
    Thread Starter ladypop2012

    (@ladypop2012)

    Thank You the code is working !!! EXCELLENT thank you

    would this need to be done for every new user? or does this work for everyone? ive been having the same issue and have been trying to find help to resolve it for over a week…i really hope this is it

    gcarlos8377

    (@gcarlos8377)

    @david Sader

    Hi I just want to know where should I place that code at

    <?php
    if(is_user_logged_in()) {
    $user = get_current_user_id();
    $url = get_dashboard_url($user);
    echo ‘My Dashboard‘;
    }
    ?>

    Regards

    Read the original post:

    #2. How to create link that takes wordpress user to their admin dashboard

    The code I offered as an answer is a “how” not a “where”. I have no Idea where the original poster decided where to put the link. Somewhere in the theme files I suppose: footer, header, index, sidebar. I do not know.

    gcarlos8377

    (@gcarlos8377)

    Thanks for your help @david Sader

    @ladypop2012 Can you let me know where I can use this code at
    <?php
    if(is_user_logged_in()) {
    $user = get_current_user_id();
    $url = get_dashboard_url($user);
    echo ‘My Dashboard’;
    }
    ?>

    I trully appreciate your help thanks in advance

    gcarlos8377

    (@gcarlos8377)

    Hi @david Sader

    I created a new page template and I added the file to my theme folder.

    Now the code gives me a URL and when you click the URL it redirect you to main site dashboard for some reason. Probably is because of the Membership plugin I use. When they sign up the plugin creates a user on main site as a subscriber now I give the users the option to create a new blog on the Network using the wp-signup.php page

    Thanks anyways for your contribution.

    Regards

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Multi-Site: How can I create a link to the wordpress users admin DASHBOARD.’ is closed to new replies.