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.

get_blogs_of_user error (1 post)

  1. Geofeedz
    Posted 6 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