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
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.
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
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.