get latest article of a specific blog
I use the wordpress-mu-sitewide-tags plugin to display the latest articles of the entire network. Its a wonderful plugin!
Now I need a possibility to show the latest articles of my main blog at the other blogs. I tried this one but it does not work…
<?php $my_query = new WP_Query('blog_id=1showposts=1&cat=1'); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <?php the_title(); ?> <?php endwhile; ?>
Nothing is displayed when I use this code. Is it possible to show the latest x articles of the main blog at the other blogs?
- The topic ‘get latest article of a specific blog’ is closed to new replies.