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.”“;
- “;
the_title();
echo “
foreach($posts as $post){
setup_postdata( $post );
echo “
“;
}
echo “
“;
endforeach ;
switch_to_blog( $original_blog_id ); //switched back to current blog
?>
Total Page Visits: 35 - Today Page Visits: 1