WordPress.org

Ready to get started?Download WordPress

Forums

How to display latest posts from other wp-blogs (2 posts)

  1. lawyer01
    Member
    Posted 4 years ago #

    Hi,
    I was wondering if its possible to display the latest blog post from other blogs and make the latest one appear on top:

    I have literally installed 10 different wp blogs on the same server in different directories and let users to post on them. Im using RSS feed to get the latest blog posts and show them on one common startpage http://www.coolapappor.se (Look at sidebar) and as you can see it works, but lacks the basic function of bringing the latest one to the top.

    Basically what i did is this:
    ..

    <li>
    John Smith:
    
     <?php //Get RSS Feed(s)
    include_once(ABSPATH . WPINC . '/feed.php');
    $rss = fetch_feed('http://www.coolapappor.se/john/feed/');
    $maxitems = $rss->get_item_quantity(1);
    $rss_items = $rss->get_items(0, $maxitems);
    ?>
    
    </li>

    So the problem is that the UL list and LI items are not generated dynamically (i wrote them self) and i need the LI with the latest post to appear on top. Any ideas?

    All help is appreciated.

  2. grafixidea.com
    Member
    Posted 4 years ago #

    I was searching for the same thing. If you didn't solved it yet, I think you will find useful information in this link:

    http://www.corvidworks.com/articles/easy-feed-reading-with-simplepie

Topic Closed

This topic has been closed to new replies.

About this Topic