Forums

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

  1. multitalentedmommy
    Member
    Posted 1 year ago #

    Is this code correct?
    http://codex.wordpress.org/Function_Reference/get_rss

    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
    Member
    Posted 1 year ago #

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

    Note
    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
    Member
    Posted 10 months 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
    Member
    Posted 10 months 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>';
    ?>

    Greetings,
    schikowski

Topic Closed

This topic has been closed to new replies.

About this Topic