O'Reilly logo

WordPress 2.7 Complete by Hasin Hayder, April Hodge Silver

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Aggregating feeds

In this section, we will see how we can get and display information from feeds, which are located at remote sources into a WordPress blog. When you display feeds from another source on your blog, you'll want to do one of two things:

  • You may want to display it in the sidebar of your theme, with a title and a link for each item in the feed
  • You may want to display the title, the link, and a short description in your posts or pages

We will discuss both these ways of displaying feeds.

Displaying an external feed in the sidebar

Feeds come in an XML format. So if you want to fetch feed contents from a remote source, you will have to fetch an XML document. This document needs to be parsed so that the data can be extracted and then displayed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required