How to Display Any RSS Feed on Your WordPress Blog


Are you looking to display RSS feeds on your blog?

RSS makes it easy to automatically pull content from other sites and display it on yours. This can boost user engagement, grow website traffic, and increase page views.

In this article, weโ€™ll show you how to display any RSS feed on your blog.

display RSS feeds on your WordPress blog

Why display RSS feeds on your blog?

All WordPress blogs come with built-in support forย RSS feeds. This allows your users to receive regular updates from your website using an RSS feed reader, like Feedly.

You can even use RSS feed integrations to send new post notifications to your users viaย email newslettersย andย push notifications.

Your blogโ€™s RSS feed is simply the websiteโ€™s address with /feed/ added at the end.

https://www.yourwebsite.com/feed/

ย 

What many people donโ€™t know is that you can also use RSS to pull content from other websites into your own.

This lets you curate content from other websites and automatically display content from social media websites like Facebook, Instagram, Twitter, and YouTube. You can even use WordPress as a news aggregator.

With that being said, letโ€™s take a look at how to display any RSS feed on your WordPress blog. Weโ€™ll cover four methods:

  • Displaying Any RSS Feed With a Widget
  • Displaying Any RSS Feed With a Plugin
  • Displaying Social Media Feeds With a Plugin
  • Displaying Any RSS Feed Using Code

Displaying Any RSS Feed With a Widget

You can display an RSS feed on your WordPress blog using the built-inย WordPress widget. Simply navigate toย Appearance ยป Widgetsย and then click the blue block inserter button at the top of the screen.

The WordPress RSS Widget

ย 

Next, you need to locate the RSS widget and drag it onto your sidebar or other widget-ready areas. After that, you just need to type or paste the RSS feed that you wish to display.

For this tutorial, weโ€™ll add Wehavedigitaltoolโ€™s RSS feed, which is located at https://wehavedigitaltool.com/feed/. Weโ€™ll also add a title using a heading block.

Hereโ€™s how the RSS widget looks on our testย WordPress blog.

Note that the default RSS widget comes with very basic features. For example, it doesnโ€™t let you add thumbnails, social buttons, or other customizations. If youโ€™d like to add those extra features, then itโ€™s better to use a plugin.

Displaying Any RSS Feed With a Plugin

WP RSS Aggregatorย is the bestย WordPress RSS feed plugin. It lets you display RSS feeds on your WordPress blog, and by purchasing premium add-ons, you can turn your WordPress blog into a content aggregator without any coding.

The first thing you need to do is install and activate the freeย WP RSS Aggregator plugin. For more details, see our step-by-step guide onย how to install a WordPress plugin.

Upon activation, you will be asked to add your first RSS feed URL. For this tutorial, weโ€™ll addย https://wehavedigitaltool.com/feed/. Once youโ€™ve entered the feed URL, you need to click the โ€˜Nextโ€™ button at the bottom of the page.

Enter the Feed URL into WP RSS Aggregator's Settings

ย 

On the next page, you will see the latest feed items from the RSS feed you linked to.

You can click the โ€˜Create Draft Pageโ€™ button to add the feed to a new page draft or use theย shortcodeย on the right to add them to any post, page, or widget area.

Click the 'Create Draft Page' Button to Preview the RSS Feed

ย 

For this tutorial, weโ€™ll click the โ€˜Create Draft Pageโ€™ button. The page is automatically created, and the button text changes to โ€˜Preview the Pageโ€™.

You can click on that button to preview the RSS feed on your website. This is a screenshot from our demo website.

The page displays a bulleted list of links to the latest three posts in the feed, along with information about the source, and the date the post was published.

This plugin becomes a real powerhouse when you use its premium add-ons. These allow you to create separate posts for each RSS item and import the full text of each post. Others allow keyword filtering of RSS items, the ability to categorize each item, and much more.

WP RSS Aggregator Add-ons

Using these add-ons, this plugin can be used for auto-blogging. However, you should use care. Scraping full content from third-party websites may lead to copyright violations and legal trouble.

Displaying Social Media Feeds With a Plugin

Adding social media feeds to your WordPress blog can help increase your followers, improve social engagement, and enrich your existing content.

Smash Balloonย is theย best social media feed pluginย for WordPress and is trusted by over 1.75ย million users.

Itโ€™s actually a combination of plugins that make it easy to create and display custom feeds from Facebook, Instagram, Twitter, and YouTube on your WordPress blog.

Adding a Facebook Social Media Feed in WordPress

You can add a Facebook feed to your site by installing and activating theย Smash Balloon Custom Facebook Feedย plugin.

Thereโ€™s also aย free versionย that lets you create basic Facebook feeds, but it doesnโ€™t include all the advanced features like embedding photos, albums, and more.

Smash Balloon lets you combine feeds from multiple Facebook pages and customize your Facebook feedโ€™s appearance without coding.

The Smash Balloon Facebook Feed Plugin

ย 

For more details, see our guide onย how to create a custom Facebook feed in WordPress.

Adding an Instagram Social Media Feed in WordPress

Smash Balloon Instagram Feedย is the best Instagram feed plugin for WordPress. A pro andย free versionย of the plugin is available.

This plugin lets you display Instagram content by hashtag or account. You can also show comments and like counts, including lightbox popups, and more.

The Smash Balloon Instagram Feed Plugin

You can learn how to use the plugin in our detailed guide onย how to create a custom Instagram feed in WordPress.

Adding a Twitter Social Media Feed in WordPress

Smash Balloon Custom Twitter Feedsย is the best Twitter feed plugin for WordPress, and there are pro andย free versionsย available.

The plugin lets you do things like display multiple Twitter feeds, respond, like, and retweet while staying on your website, and show full tweets in lightboxes.

The Smash Balloon Custom Twitter Feeds Plugin

For more instructions on adding a Twitter feed to WordPress using this plugin, see our guide onย how to embed tweets in WordPress.

Adding a YouTube Social Media Feed in WordPress

Feeds for YouTube by Smash Balloonย is the best YouTube social media plugin available for WordPress, and there are pro andย free versionsย of the plugin available.

The plugin lets you create a customizable gallery from all your channels, add live streaming, use advanced search queries to create custom feeds, and more.

You can also choose from different layout templates to change the appearance of your video feed.

The Feeds for YouTube by Smash Balloon Plugin

For more detailed instructions, see our guide onย creating a YouTube gallery in WordPress.

Displaying Any RSS Feed Using Code

Using code, you can make use of a WordPress built-in function to display any RSS feed on your blog.

Simplyย paste the following codeย into any WordPress file that you choose. We recommend you create aย custom pageย for this purpose.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<h2><?php _e( 'Recent news from Some-Other Blog:', 'my-text-domain' ); ?></h2>
ย ย 
<?php // Get RSS Feed(s)
include_once( ABSPATH . WPINC . '/feed.php' );
ย ย 
// Get a SimplePie feed object from the specified feed source.
$rss = fetch_feed( 'https://www.wpbeginner.com/feed/' );
ย ย 
if ( ! is_wp_error( $rss ) ) : // Checks that the object is created correctly
ย ย 
ย ย ย ย // Figure out how many total items there are, but limit it to 5.
ย ย ย ย $maxitems = $rss->get_item_quantity( 5 );
ย ย 
ย ย ย ย // Build an array of all the items, starting with element 0 (first element).
ย ย ย ย $rss_items = $rss->get_items( 0, $maxitems );
ย ย 
endif;
?>
ย ย 
<ul>
ย ย ย ย <?php if ( $maxitems == 0 ) : ?>
ย ย ย ย ย ย ย ย <li><?php _e( 'No items', 'my-text-domain' ); ?></li>
ย ย ย ย <?php else : ?>
ย ย ย ย ย ย ย ย <?php // Loop through each feed item and display each item as a hyperlink. ?>
ย ย ย ย ย ย ย ย <?php foreach ( $rss_items as $item ) : ?>
ย ย ย ย ย ย ย ย ย ย ย ย <li>
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย <a href="<?php echo esc_url( $item->get_permalink() ); ?>"
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย title="<?php printf( __( 'Posted %s', 'my-text-domain' ), $item->get_date('j F Y | g:i a') ); ?>">
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย <?php echo esc_html( $item->get_title() ); ?>
ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย </a>
ย ย ย ย ย ย ย ย ย ย ย ย </li>
ย ย ย ย ย ย ย ย <?php endforeach; ?>
ย ย ย ย <?php endif; ?>
</ul>

You can customize this code by changing the title on Line 1, the feedโ€™s URL on Line 7, the number of items to display on Line 12, and any other setting that you like.

We hope this tutorial helped you learn how to display any RSS feed on your WordPress blog. You may also want to see ourย comparison of the best domain name registrars, or check out our list ofย proven ways to make money online blogging with WordPress.

If you liked this article, then please subscribe to ourย YouTube Channelย for WordPress video tutorials. You can also find us onย Instagramย andย Facebook.

LEARN FREE WordPress wite Wehavedigitaltool


Leave a Comment

%d bloggers like this: