News + Videos

$catid_videos, 2 => $catid_news); // setup a category for each blog EDIT

foreach($bids as $bid):
switch_to_blog($bid); //switched to blog with blog_id $bid

// … your code for each blog …
$posts = get_posts(‘&cat=’.$cats[$bid].’&posts_per_page=10′);
echo “

    Items from blog_id=”.$bid.”“;
    foreach($posts as $post){
    setup_postdata( $post );

    echo “

  • “;
    the_title();
    echo “
  • “;

    }
    echo “


“;

endforeach ;

switch_to_blog( $original_blog_id ); //switched back to current blog
?>

Total Page Visits: 23 - Today Page Visits: 1