get_blogs_of_user error (1 post)

  1. Geofeedz
    Posted 5 years ago #

    $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.

Topic Closed

This topic has been closed to new replies.

About this Topic