WordPress.org

Ready to get started?Download WordPress

Forums

Displaying RSS headlines in the sidebar? (18 posts)

  1. nicely
    Member
    Posted 9 years ago #

    I'm sure someone has posted this question before, but I cannot find it in the forum because the search only displays 5 topics...

    Is there an easy way for me to display the last 5 headlines of a few RSS Feeds in the sidebar of my wordpress 1.5 home page? I'd like to do this for a few news sites and for a few of my friends wordpress blogs such that you can click the headline and be taken to that post on their site in a new window.

    Any help would be greatly appreciated...

    Thanks.

  2. iand
    Member
    Posted 9 years ago #

    You could try http://rawlinson.us/blog/index.php?p=212
    And when you search, below the 5 results is a link to a google search. I find it tends to have better results.

  3. davidchait
    Member
    Posted 9 years ago #

  4. vkaryl
    Member
    Posted 9 years ago #

    Yup, FeedRead should suit just fine. It's a really great plugin. Get it here: http://www.chait.net/index.php?p=238

    [David, your link got whanged somehow - left off a closing tag?]

  5. davidchait
    Member
    Posted 9 years ago #

    yeah... sorry, must have not closed it. thought I looked at it tho... weird. thank vkaryl!

    -d

  6. nicely
    Member
    Posted 9 years ago #

    Thanks guys, I actually used the script that IanD recommended and it works for me, but I'll definitely check out the CG-PowerPack. Thanks again.

  7. MattRead
    Member
    Posted 9 years ago #

    OR, use the built in rss functions:

    <?php wp_rss('http://somessite.com/rss/', 4) ?>

    That will grab the 4 latest titles from http://somessite.com/rss/ and output them as a list. <ul><li>...

  8. shadow
    Member
    Posted 9 years ago #

    @ MattRead

    I like the simplicity of your suggestion but when I tried it I received errors.

    I then looked at the Codex to find the paremetrs for the wp_rss tag but could not find any reference to it at all.

    Am I missing something here?

  9. wpmubp
    Member
    Posted 9 years ago #

    I had the same error after trying the suggestion of Matt.
    I think we better use the plugin until the problem is solved.

  10. MattRead
    Member
    Posted 9 years ago #

    OI! sorry about that, forgot one important thing:

    <?php include_once (ABSPATH . WPINC.'/rss-functions.php');
    wp_rss('http://somessite.com/rss/', 4); ?>

    that will work. for sure :)

  11. shadow
    Member
    Posted 9 years ago #

    Thanks for the new info matt but I am still getting this when I try.

    Fatal error: Call to undefined function: error() in /home/domain/public_html/shadows/wp-includes/rss-functions.php on line 492

    I am putting this in my sidebar. Does that make a difference?

  12. MattRead
    Member
    Posted 9 years ago #

    shadow, you seem to have found a bug in the rss-functions, I'll see if it's been reported, and report it if not.

    But that means the feed you were trying to get has an error in it.

  13. jweaks
    Member
    Posted 9 years ago #

    I'm using the CG-Feedread plugin at one of my sites with great success. It took some experimenting to get it like I wanted it. There is a "feedread-extras" folder in the zip that has code for handling multiple feeds. You have to figure out how to wipe the cache to be able to test different configurations. http://www.anailinhisplace.net

  14. dalziel
    Member
    Posted 9 years ago #

    Does anyone know if there's been a resolution to the bug Fatal error: Call to undefined function: error() in /home/domain/public_html/shadows/wp-includes/rss-functions.php on line 492?

  15. matopc
    Member
    Posted 9 years ago #

    #1446 (break when can't get RSS) - WordPress Trac - Trac

    Hi dalziel,
    This ticket in trac helps. Just tweak /wp-includes/rss-functions.php file.
    Hope it works.

  16. vegasman
    Member
    Posted 8 years ago #

    I would like to post rss feeds on pages I create. With the include php. I have found plugin that enables me to do this. But it displays the rss feed below the sidebar in the body instead of next to it. How can I fix this to dispay correctly. Example: http://www.newlifepub.com/blog/?page_id=3

  17. vanquery
    Member
    Posted 8 years ago #

    That was very helpful information MattRead...Thank you

  18. nicktripp
    Member
    Posted 7 years ago #

    I've been using the method described by MattRead for over a year now. I just upgraded to 2.0.6 last night (I know, I know. 2.0.7) and this method now seems to be broken.

    Little help?

Topic Closed

This topic has been closed to new replies.

About this Topic