RSS feed/link from website to blog?

Discussion in 'WordPress' started by screationz, Jan 21, 2011.

  1. #1
    I am in the midst of coding one of my blog, and I would like to pull from various RSS feeds, like our existing blog, twitter feed, etc (in the post area not the sidebar). We want it to exist in the event something happens to our network. What is the snippet of code that makes that possible?

    I do not want full posts or comments to show, just teaser posts with the first XXX number of characters before linking to the blog for more

    Hope im making sence
    Thanks for your help
     
    screationz, Jan 21, 2011 IP
  2. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #2
    WordPress can retrieve an external feed and parse it. It uses the SimplePie and FeedCache functionality for retrieval and parsing and automatic caching. For more information, see the Function Reference for fetch feed in the Codex.
     
    Dodger, Jan 21, 2011 IP
  3. screationz

    screationz Well-Known Member

    Messages:
    166
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    123
    #3
    Thank you. Got it sorted :)
     
    screationz, Jan 22, 2011 IP
  4. joshuthomas

    joshuthomas Well-Known Member

    Messages:
    595
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    140
    #4
    Great info Dodger! Thanks for sharing.
    Basically a blog's feed URL is the domainname.com/blog/feed and that will directly lead you to the feed page if its wordpress and you could feed from it if you are trying to autoblog.

    cheers
    Josh
     
    joshuthomas, Jan 22, 2011 IP
  5. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #5
    No problem. There are limitations to fetch_feed() though. They do not give you the full gambit of SimplePie methods to use and is a little bit put-offish for my taste. One time I was tempted to just bypass fetch_feed() altogether and use the core SimplePie object, but decided it was not worth the effort for the project at that time.
     
    Dodger, Jan 22, 2011 IP
  6. joshuthomas

    joshuthomas Well-Known Member

    Messages:
    595
    Likes Received:
    9
    Best Answers:
    1
    Trophy Points:
    140
    #6
    Ohh okay. Good to know that.

    warm regards
    Josh
     
    joshuthomas, Jan 24, 2011 IP