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.
- The topic ‘How to display latest posts from other wp-blogs’ is closed to new replies.