University Marketing & Communications

December 19, 2012

How to find and embed RSS feeds in WordPress

By University of Washington

On this Page


Overview

From the WordPress Codex:

A feed is a function of special software that allows feedreaders to access a site, automatically looking for new content and then posting the information about new content and updates to another site. This provides a way for users to keep up with the latest and hottest information posted on different blogging sites.

Because you cannot control the content displayed by outside RSS feeds, you should only use feeds from trusted sources such as partner organizations or other UW sites.

See the WordPress Codex for more in-depth information about WordPress Feeds.

Note: If you wish to display posts from your own site on one of your site pages, the blogroll short code allows for more control and customization.

How to find UW WordPress RSS feeds

You can use RSS feeds that pull posts by category, and tag from any site running the latest version of the UW WordPress theme. Note: In order to find and use a feed, that site must have published blog posts.

To find an RSS feed displaying categories, use the following URL format (edit the bolded parts):

Basic format: http://www.uw.edu/sitename/category/categoryname/feed
Real example: http://www.uw.edu/community/category/uw-news-events/feed

To find an RSS feed displaying tags, use the following URL format (edit the bolded parts):

Basic format: http://www.uw.edu/sitename/tag/tagname/feed
Real example: http://www.uw.edu/news/tag/global-citizens/feed

To find an RSS feed displaying posts from a specific author, use the following URL format (edit the bolded parts):

Basic format: http://www.uw.edu/sitename/author/NetID/feed
Real example: http://www.uw.edu/marketing/author/uweb/feed

How to embed RSS feeds

To embed any RSS feed into a page, use the following short code:

[rss url="feed url"]

Below are the available attributes that you can use to customize the RSS short code.

Attribute Action Short Code Example
title="TITLE" A heading for the rss feed that will display on page [rss url="feed url" title="News"]
number="#" Number of headlines the feed will display (5 headlines is the default) [rss url="feed url" number="10"]

Example

The Healthy Lives Around the Globe page has the following RSS short code embedded:

[rss url="http://www.washington.edu/news/category/health-and-medicine/feed" title="News" number="8"]

In the image below, you can see how the RSS short code (highlighted by the red box) appears in the WordPress Visual Editor:
RSS shortcode example

And here is how the RSS feed (highlighted by the red box) displays on the live site:
RSS display example