Support » Multisite » get_blogs_of_user error

get_blogs_of_user error

  • <?php
    $user_id = 1;
    $user_blogs = get_blogs_of_user( $user_id );
    echo 'User '.$user_id.'\'s blogs:<ul>';
    foreach ($user_blogs AS $user_blog) {
        echo '<li>'.$user_blog->userblog_id.'</li>';
    echo '</ul>';

    Is giving an Warning: Invalid argument supplied for foreach() in blah/blaha/ on line 5
    Does anyone know how to call the current users blog_Id a different way.

  • The topic ‘get_blogs_of_user error’ is closed to new replies.