BEFORE
<?php if (have_posts()) : while (have_posts()) : the_post(); ? >
ADD THIS
<?php switch_to_blog(2); ?>
Define the BLOG ID -> The number in ()
Define how many transaction you need
<?php $recent = new WP_Query("showposts=3"); ?>
-- full code --
<?php
if(have_posts()) :
$recent = new WP_Query("showposts=3");
while($recent->have_posts()) : $recent->the_post();
?>
2009年10月2日
WordPress MU: search or display different blogs content in Master Blog
張貼者:
no More!
於
15:33
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言