The MU forums have moved to WordPress.org

Multiple loops, multiple blogs (2 posts)

  1. maerk
    Member
    Posted 17 years ago #

    Is there anyway of showing posts from different blogs on the front page? I'm setting up a magazine site with different sections and I want to show the latest two posts from each blog on the front page.

    I'm very familiar with the WordPress API, and have been trying to do it with installs of 'regular' WordPress, but once I've connected to one blog (with get_posts, query_posts or even starting a new WP_Query) it won't connect to another blog. I.e., it just shows the same two posts from the first two blogs.

    Anyway, I was wondering if there was a way I could create multiple loops on the same page for the WPMU blogs, one for each blog?

  2. andrea_r
    Moderator
    Posted 17 years ago #

    Most people have just been pulling an SQL query.

    like this for example:
    http://atypicalhomeschool.net/wordpress-plugins/ah-recent-posts-mu.txt

About this Topic