Shortcodes

RSS Shortcode

You can easily embed an RSS feed from another site into a post or page using shortcodes.

Using the RSS shortcode

To use the RSS shortcode, you’ll need the URL of the feed you want to embed. For example, the feed URL for the WordPress.com blog is

http://en.blog.wordpress.com/feed

Once you have the feed link, add it to your post or page using this format:

[rss url=http://en.blog.wordpress.com/feed]

Here’s what that will look like:

Screen Shot 2014-07-31 at 9.16.20 a

The number of items displayed from the RSS feed will be determined by the feed owner.

You can customize the look of your feed using the options below.

↑ Table of Contents ↑

Customizing your Feed

There are several ways you can customize your feed:

Option Description Choices Default Setting
show_title Display the article title (If titles are hidden, links will be automatically hidden as well.) true, false true
show_links Displays the article title as a link true, false true
show_summary Displays an excerpt of the article true, false true
show_author Displays the author of the article true, false false
show_date Displays the date the article was published true, false false
reverse Reverses the order of the listed articles true, false false (most recent at top)

↑ Table of Contents ↑

Examples

[rss url=http://en.blog.wordpress.com/feed show_title=false]

Screen Shot 2014-07-31 at 10.17.06 a

[rss url=http://en.blog.wordpress.com/feed show_links=false]

Screen Shot 2014-07-31 at 10.17.29 a

[rss url=http://en.blog.wordpress.com/feed show_author=true show_date=true]

Screen Shot 2014-07-31 at 10.17.52 a

[rss url=http://en.blog.wordpress.com/feed show_summary=false]

Screen Shot 2014-07-31 at 10.18.15 a

↑ Table of Contents ↑

Troubleshooting

If you’re seeing this error:

An error has occurred; the feed is probably down. Try again later.

There’s either an error with your feed URL or the feed itself is down. Here are some steps to troubleshoot your RSS feed shortcode:

  • Make sure you include http:// in your domain
  • Do not use quotes
  • Confirm that your feed URL validates using this feed validator.
  • If your feed URL is PHP, the additional parameters at the end may cause issues. Try removing everything after .php including the question mark.

Not quite what you're looking for?

Get Help