get latest article of a specific blog (2 posts)

  1. Raisis
    Posted 5 years ago #

    Hi everybody,

    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?

  2. Why not use the dashboard admin feed feature? Then all your site owners can see the latest post from your main blog in their own dashboard.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.