[resolved] can i display rss feed from another blog? (4 posts)

  1. Cathy Tibbles
    Posted 8 years ago #

    Is this code correct?

    I can't get it to work on my site. And it says that the $num var is required, but I don't see it in the example code?

    What I want to do: take the feed from my other site and place the last 5 post titles in this blog's sidebar - any suggestions?

  2. Ivovic
    Posted 8 years ago #

    I havent tried using this, but the first thing I saw was:

    A bug in 2.06 prevents this function from working correctly. This bug will likely be fixed in 2.07 or 2.08.

    maybe 2.6 or 2.7... or 3.9?

  3. Sapphire
    Posted 8 years ago #

    I tried several variations on that, and what's weird is only one time did it produce anything, and that was a parsing error. The rest of the time, absolutely nothing displayed on the page.

    I think the code is just plain wrong. Sorry - it's just what I need, too.

  4. schikowski
    Posted 7 years ago #

    Works perfectly for me.
    Like this:

    <?php require_once(ABSPATH . WPINC . '/rss-functions.php');
    echo '<ol>';
    get_rss('http://www.ayudh.eu/feed/', $num = 8);
    echo '</ol>';


Topic Closed

This topic has been closed to new replies.

About this Topic