Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress MU list sites

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36670
    dhechler
    Member

    Hey guys,

    Im looking for a way to list out the current logged in user’s sites that they are admin’s of.
    Here is a concept design of what i want to accomplish.

    http://cloud.isawebsite.com/3k3s151v3j2o1O1j223J

    When the user signs up for a blog (through multi-site sign up form) the username they set becomes their prefix url, so that might be a place to start.

    #96779
    dhechler
    Member

    Figured it out!

    
    global $current_user;
    get_currentuserinfo();
    $id = $current_user->ID;
    $blogs = get_blogs_of_user($id);
    foreach ( $blogs as $blog ) {
    if($blog->userblog_id != 1){
    ?>


    Please to view your sites.


Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.