Display RSS feeds with PHP

Discussion in 'XML & RSS' started by XooX, Sep 18, 2009.

  1. #1
    Hi

    I have two blogs, let's call them 1 and 2. I want to pull RSS feeds from blog 2, and display the titles of the latest 5 articles hyperlinked to the respective URL on blog 1.

    I am looking for a PHP script and not javascript so that it will also help in the second blog getting some Google juice.

    Does anyone know how to get this done?

    Thanks
     
    XooX, Sep 18, 2009 IP
  2. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What are you using to power these blogs? Wordpress? MT? static pages? The answer really depends on what's running these blogs.
     
    theapparatus, Sep 18, 2009 IP
  3. IcePoP

    IcePoP Peon

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    get yourself magpie or simplepie and get your blog on feedburner - you can then embed your blog links in the way you want on your page using the feedburner address.
     
    IcePoP, Sep 18, 2009 IP
  4. XooX

    XooX Well-Known Member

    Messages:
    661
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    155
    #4
    Thanks Icepop and theapparatus

    My blogs are on Wordpress. And is magpie or simplepie free?
    Anyway, will check out with them.
     
    XooX, Sep 18, 2009 IP
  5. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Actually they're built in which is why I was asking for the software you are using.

    Why not use the RSS Widget and place it in the sidebar? That's what it;s there for.

    I'm assuming that you;re not on wp.com but here's their instructions on how to use it:

    http://support.wordpress.com/widgets/rss-widget/
    Code (markup):
    edit: The Feedburner burner suggestion I believe is a poor one as it changes the links into their urls which, as you requested, doesn't help with Google juice.

    Hope this helps,
    -drmike
     
    theapparatus, Sep 19, 2009 IP
  6. XooX

    XooX Well-Known Member

    Messages:
    661
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    155
    #6
    Thanks a lot.., I researched a bit on that..Is it possible to move the widget to any place I like..I am trying to display my feeds from the other blog just below the header on the main part of the page...
     
    XooX, Sep 20, 2009 IP
  7. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #7
    You'd have to edit the theme. The function call you want is fetch_feed.
     
    theapparatus, Sep 21, 2009 IP
  8. theapparatus

    theapparatus Peon

    Messages:
    2,925
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Why bother with an unsupported third party app when the software being run already supports what the poster is trying to do?

    edit: Oh wiat, you;re just spamming for pulSSR.com. Never mind.
     
    theapparatus, Oct 22, 2009 IP