In this tutorial, I’m going to show you how to show external RSS feed on your WordPress site. There are actually few ways to do so, and I’m going to show you to of them.
1. Using WordPress default RSS widget
WordPress comes with RSS default widget. Drag this widget to any of the widget area registered by your theme, put the RSS feed URL, give it a title, and choose the number of latest articles will be showing up on your site, up to 20 latest articles.
You may also choose whether to display the content, author or date of the article.
However, since this is a widget, it’s very limited to the widget areas supported by your theme.
2. WP RSS Aggregator Plugin
This is a great plugin by a folk from WPMayor. Once activated, this plugin will add a new custom post type and you’ll be able to add as many feed URL as you wish. There are plenty of options and you can choose how many latest articles will be showing up on your site.
This plugin uses SimplePie for feed operation. There are two ways to output the feed, either using PHP code or the [wp_rss_aggregator] shortcode. The shortcode accepts few parameters to customize the output where you can find from the plugin installation page.
3. RSS Import Plugin
This is one of my favorite plugins. It also uses the SimplePie script but does not add additional custom post type. It is more flexible than WP RSS Aggregator plugin as it allows you to show latest articles from a single external source. Similar to WP RSS Aggregator plugin, there are two ways to output the feed, either by PHP code or shortcode.
Here’s an example to show 10 latest post from an external site:
[RSSImport display="10" feedurl="http://your_feed_url/"]
Currently there are lots of parameters accepted by the shortcode where you can find from the plugin page.
These three are some ways to show external RSS feed on your WordPress site. If you want to show it on any of your widget areas, the first option might be the best choice since you do not need to install an additional plugin. However, if you want to show it on your post or page, the second and third option is the best.
Leave a Reply