Cheat Sheet: craft.feeds

{# Required #}
{% set feedUrl  = "http://feeds.feedburner.com/blogandtonic" %}

{% set items = craft.feeds.getFeedItems(feedUrl, limit, offset, cacheDuration) %}

{% for item in items %}

  {{ item.title }}
  {{ item.summary }}
  {{ item.content }}

  {{ item.date }}
  {{ item.dateUpdated }}
  {{ item.permalink }}

  {{ item.authors }}
  {{ item.authors[0].name }}
  {{ item.authors[0].url }}
  {{ item.authors[0].email }}

  {{ item.contributors }}
  {{ item.contributors[0].name }}
  {{ item.contributors[0].url }}
  {{ item.contributors[0].email }}

  {{ item.categories }}
  {{ item.categories[0].term }}
  {{ item.categories[0].scheme }}
  {{ item.categories[0].label }}

{% endfor %}

Don't miss any Craft tips, tricks, and community updates