Prior to version 2.8 of WordPress (and since version 1.5), if you wanted an RSS feed on your WP website you would use wp_rss()
... and it works fine. However, support for the very fast and reliable SimplePie
library was added in version 2.8 - and it's a far better option. This article will show you how to added a feed to your WordPress website (with only basic options) and cache the result with the WordPress transient API.
What is an RSS feed? RSS (Rich Site Summary) is a format for delivering regularly changing web content. Many news-related sites, blogs, and other online publishers syndicate their content as an RSS Feed to whoever wants it. All WordPress websites usually have an RSS feed available by default.
The Result
Using the shortcode of [rss feed="http://www.beliefmedia.com/feed" size="3"] we'll render the three latest posts from this website. The result is as follows:
The Compliance Implications of Third-Party Forms and Automatic Referrals - 25th Jun 2026
The increasing digitisation of credit intermediation has produced a structural evolution in how credit assistance is delivered, particularly through embedded third-party forms hosted within broker or aggregator-controlled digital environments. While ...
Is Cold Calling, Social Media Canvassing, or Open Home Registers Permitted for the Purpose of Attracting Mortgage Leads? - 24th Jun 2026
I came across a today where a broker was scouting for an individual for the purpose of cold calling potential mortgage clients with renumeration determined by the loan size. Apart ...
The Use of Interest Rates and Numeric Claims in Mortgage Broker Advertising - 15th Jun 2026
The advertising of mortgage interest rates occupies a unique position within consumer protection law. Unlike most forms of commercial advertising, the promotion of credit products is subject to an unusually ...
The last three results (without description) from our neglected FLIGHT website may be returned with the shortcode of [rss feed="http://www.flight.org/feed" size="3" heading="h5" excerpt="0"]. The result:
Error. Visit the feed here.
Using our textbox shortcode we can wrap a feed (this time our YouTube RSS feed) with the following result:
Sorry to See You Leave, But We'd Love to Have You Back - (Unsubscribe) - 16th Jun 2026
Thank You For Downloading Our Finance Guide - (Redirect) - 16th Jun 2026
Thank You - We'll Call You Shortly - (Redirect) - 16th Jun 2026
Shortcode Attributes
The following shortcode attributes are available:
feed
http://www.beliefmedia.com/feed.size
excerpt
excerpt="30" (where 30 is the number of words to return). To disable the excerpt, use excerpt="0".more
more text is the trailing dots or other characters of your choosing.date
date="1" (default). To disable, use date="0".datecss
font-weight: normal by default.dateformat
dateformat="jS M Y". All available date options are listed in the PHP manual
.heading
h4 tags by default.list
list="0".target
cache
. To alter the feed transient time there's a sample filter function in the WP codex.WordPress Shortcode
Copy and paste the WordPress function into your theme's functions.php file or, if you sensibly have one installed, your custom functions plugin.
If you require shortcode to work in a sidebar widget, you'll have to enable the functionality with a filter. If you're using our custom functions plugin, you'll have that feature enabled by default.
Considerations
- This function is ported from the now retired Internoetics with only minor modifications. It could do with an update!
Download
Title: Add RSS Feeds to WordPres (WP Shortcode)
Description: A Better Way to Add RSS Feeds to Your WordPress Blog (Using Shortcode).
Download • Version 0.2, 1.3K, zip, Category: WordPress Shortcodes


