12 Tips to Optimize Your WordPress RSS Feed (Quick & Easy)

Do you want to optimize your RSS feed in WordPress?

Every WordPress site has an RSS feed by default. You can optimize this feed to protect your content, send more traffic to your site, and more.

In this article, we’ll show you how to optimize and customize your RSS feeds the right way.

12 tips to optimize your WordPress RSS feed

Why Optimize Your WordPress RSS Feeds?

RSS feeds offer a way for your readers to subscribe and read your blog posts in their favorite feed reader apps like Feedly.

Even though feed readers aren’t as popular as they once were, there are still many readers who prefer to read WordPress blog content this way.

By optimizing your RSS feed you can also prevent content scraping, get more backlinks, send traffic to your site, and more.

With that said, let’s get into our expert tips for optimizing your RSS feed.

1. Create an RSS Feed Sitemap

An RSS sitemap is different from an XML sitemap. RSS sitemaps only contain your most recent content, which helps Google to keep your content fresher in search results.

If you publish content frequently, then this can lead to a boost in your search engine rankings.

All in One SEO allows you to add an RSS sitemap to your website easily, without having to code.

The first thing you need to do is install and activate the All in One SEO plugin. For more details, see our step by step guide on how to install a WordPress plugin.

Upon activation, you’ll be prompted to set up the plugin. You can follow the guided steps in the setup wizard, or see our guide on how to set up All in One SEO for WordPress.

AIOSEO enables RSS sitemaps automatically, so there’s nothing else you need to do.

If you’d like to double check, simply go to All in One SEO » Sitemap and then click on the ‘RSS Sitemap’ tab.

You can see that the ‘Enable Sitemap’ toggle in the ‘RSS Sitemap’ box is already enabled.

Enable RSS sitemap

You can also set the number of posts and the post types you want to include in the ‘Sitemap Settings’ box.

We’ll leave the default settings, but you can include more posts or only include certain post types.

Edit RSS sitemap settings

Before you leave the screen, make sure to click the ‘Save Changes’ button.

Now you’ve enabled your RSS sitemap for your website.

To submit your new RSS sitemap to Google, you can see our guide on how to add your WordPress site to Google Search Console. It’s the same process as submitting an XML sitemap.

2. Edit Your RSS Feed Before and After Content

By default, WordPress RSS feeds will show your recent post content, and there’s no built-in option to customize that content for your readers.

Luckily you can use the All in One SEO plugin to easily customize your RSS feed before and after content.

Simply follow the same steps as above to install, activate, and set up the plugin.

After that, navigate to All in One SEO » General Settings and then click the ‘RSS Content’ menu option.

Edit RSS content

On this screen, you can add any content you want to display before and after each post in your RSS feed.

You can add HTML, smart tags for links, and other metadata to each section.

Edit header and footer RSS content

Once you’re satisfied with your changes, make sure to click the ‘Save Changes’ button to save your RSS feed.

3. Protect Your RSS Feed From Content Scrapers

Content scraping is when content is taken your site, usually via your RSS feed, and republished on someone else’s site as their own.

It can be very frustrating to see someone stealing your content, monetizing it, and even outranking your website in the search results.

Luckily, you can customize your RSS feed to actually benefit your site if someone steals your content via your RSS feed.

For more details, see our beginner’s guide to preventing blog content scraping in WordPress.

4. Show Excerpt Instead of Full Article in RSS Feed

Showing your full article in the RSS feed lets your users read the entire article in their feed reader. This can negatively affect your page views, advertising revenue, and conversion rates.

By showing the article summary instead of the full article in your RSS feed, you require readers to come to your WordPress website to read the full post.

WordPress comes with a built-in solution. Simply go to Settings » Reading in your WordPress admin dashboard.

Then, scroll down to the section titled ‘For each post in a feed, include’ and select the ‘Excerpt’ radio button.

Show article excerpt in RSS feed

You can also control the number of posts that display in your RSS feed as well.

In the ‘Syndication feeds show the most recent’ box, simply enter a number into the box.

Before you leave this screen, make sure to click the ‘Save Changes’ button to update your RSS feed settings.

5. Add a Featured Image to Posts in RSS Feed

By default, WordPress doesn’t add your post featured images to your RSS feed. When your users read your post in a feed reader, it’ll often pull the first image in your post.

You can change this by adding code to your WordPress files. If you haven’t done this before, then see our beginner’s guide to pasting snippets from the web into WordPress.

All you need to do is add the following code to your functions.php file, in a site specific plugin, or by using a code snippets plugin.

function wpb_rsstutorial_featuredimage($content) {
global $post;
if(has_post_thumbnail($post->ID)) {
$content = '<p>' . get_the_post_thumbnail($post->ID) .
'</p>' . get_the_content();
}
return $content;
}
add_filter('the_excerpt_rss', 'wpb_rsstutorial_featuredimage');
add_filter('the_content_feed', 'wpb_rsstutorial_featuredimage');

This code simply adds your featured image inside a paragraph just before the post content.

6. Add Custom Post Types to Your RSS Feed

Many WordPress sites use custom post types to create separate sections from regular blog articles.

For example, here at WPBeginner, we created separate custom post types for our Deals and Glossary sections.

If you publish a lot of content using different custom post types, then you’ll want to add these to your main feed.

To do this, you’ll need to add the following code to your functions.php file, in a site specific plugin, or by using a code snippets plugin.

function myfeed_request($qv) {
	if (isset($qv['feed']) && !isset($qv['post_type']))
		$qv['post_type'] = array('post', 'books', 'movies');
	return $qv;
}
add_filter('request', 'myfeed_request');

This code adds two custom post types, ‘books’ and ‘movies’, to the main RSS feed. Make sure you replace these with your own custom post types.

7. Add Additional Text to Post Titles in RSS

Adding additional text to your post titles in RSS can be helpful if you create multiple kinds of post content.

For example, this can help your readers distinguish between guest posts, regular blog content, and sponsored content.

Here’s a code snippet you can use to display the post category in the title:

function wpb_rsstutorial_titlecat($content) {
$postcat = "";
foreach((get_the_category()) as $cat) {
$postcat .= ' ('.$cat->cat_name . ')';
}
$content = $content.$postcat;
return $content;
}
add_filter('the_title_rss', 'wpb_rsstutorial_titlecat');

For more details and examples, see our guide on how to completely customize your WordPress RSS feeds.

8. Allow Users to Subscribe to RSS Feed via Email

Not all your users want to use a feed reader to subscribe to your posts. A lot of people will prefer to subscribe by email instead. That’s one reason why having an email newsletter is important.

To send RSS emails automatically, we recommend using Sendinblue. It’s a popular email marketing service provider that has a forever free plan to send up to 300 emails a day.

Sendinblue

Once your email list is set up, you can automatically send RSS emails when you publish a new blog post.

For more details, see our guide on how to notify subscribers of new posts in WordPress.

9. Allow Users to Subscribe to Categories in RSS Feed

Each category on your WordPress site will automatically have its own RSS feed. If you run a massive blog with many diverse categories, then this lets your readers only subscribe to categories that interest them.

However, a lot of users don’t realize they can easily subscribe to specific categories. You can make this easier on your readers by highlighting this on your website.

Subscribe to category RSS

For more details, see our guide on how to make separate RSS feed for each category in WordPress.

10. Add Custom Field Data to Your RSS Feed

Custom fields let you add extra metadata to your WordPress posts and pages. However, this metadata isn’t included in your default RSS feed.

To display custom fields in your RSS feed, simply add the following code snippet to your functions.php file, in a site-specific plugin, or by using a code snippets plugin.

function wpb_rsstutorial_customfield($content) {
global $wp_query;
$postid = $wp_query->post->ID;
$custom_metadata = get_post_meta($postid, 'my_custom_field', true);
if(is_feed()) {
if($custom_metadata !== '') {
// Display custom field data below content
$content = $content."<br /><br /><div>".$custom_metadata."</div>
";
}
else {
$content = $content;
}
}
return $content;
}
add_filter('the_excerpt_rss', 'wpb_rsstutorial_customfield');
add_filter('the_content', 'wpb_rsstutorial_customfield');

This code checks if the custom field is being used and if the RSS feed is being displayed. After that, it will add the custom field data below the post content.

11. Delay Posts From Appearing in RSS Feed

Delaying posts from appearing in your RSS feed can save you from accidental publishing and can help you beat content scrapers, if that’s an issue you regularly face.

When you delay posts from appearing in your RSS feed, you give the search engines time to crawl and index your content before it appears elsewhere.

Plus, you can check for any typos before it gets sent out to RSS subscribers.

To do this, you’ll need to add the following code to your functions.php file, in a site-specific plugin, or by using a code snippets plugin.

function publish_later_on_feed($where) {

	global $wpdb;

	if ( is_feed() ) {
		// timestamp in WP-format
		$now = gmdate('Y-m-d H:i:s');

		// value for wait; + device
		$wait = '10'; // integer

		// http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_timestampdiff
		$device = 'MINUTE'; //MINUTE, HOUR, DAY, WEEK, MONTH, YEAR

		// add SQL-sytax to default $where
		$where .= " AND TIMESTAMPDIFF($device, $wpdb->posts.post_date_gmt, '$now') > $wait ";
	}
	return $where;
}

add_filter('posts_where', 'publish_later_on_feed');

This code will add a 10 minute delay before posts appear in your RSS feed. You can change it to your own needs by changing the 10 and MINUTE values.

12. Add Social Buttons to Your WordPress RSS Feeds

Most RSS feed readers don’t have social sharing features, or they’re not very noticeable. However, you can add your own social media icons to your RSS feed to encourage sharing.

First, you’ll need to create image icons for the social media networks you want to add. For this tutorial, we created images for Facebook and Twitter and uploaded them by going to Media » Add New.

After you upload your image files, you need to copy the ‘File URL’ and paste it into your favorite text editor to save it for the next step.

For more details, see our guide on how to get the URL of images you upload in WordPress.

Upload social media icons copy URL

Next, you need to add the following code snippet to your functions.php file, in a site-specific plugin, or by using a code snippets plugin.

// add custom feed content
function wpb_add_feed_content($content) {

// Check if a feed is requested
if(is_feed()) {

// Encoding post link for sharing
$permalink_encoded = urlencode(get_permalink());

// Getting post title for the tweet
$post_title = get_the_title(); 

// Content you want to display below each post
// This is where we will add our icons

$content .= '<p>
<a href="http://www.facebook.com/sharer/sharer.php?u=' . $permalink_encoded . '" title="Share on Facebook"><img src="Facebook icon file url goes here" title="Share on Facebook" alt="Share on Facebook" width="64px" height="64px" /></a>

<a href="http://www.twitter.com/share?&text='. $post_title . '&amp;url=' . $permalink_encoded . '" title="Share on Twitter"><img src="Facebook icon file url goes here" title="Share on Twitter" alt="Share on Twitter" width="64px" height="64px" /></a>
</p>';
}

return $content;
}

add_filter('the_excerpt_rss', 'wpb_add_feed_content');
add_filter('the_content', 'wpb_add_feed_content');

This code above will simply add the social sharing buttons for Twitter and Facebook. You need to replace the src= attribute in the image tag with your own image URLs that you pasted into your text editor earlier.

If you’ve optimized your RSS feed and are seeing errors, then see our guide on how to fix RSS feed errors.

We hope this article helped you learn how to optimize your WordPress RSS feed. You may also want to see our expert picks on the best email marketing services for small businesses and our guide on how to choose the best website builder.

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

The post 12 Tips to Optimize Your WordPress RSS Feed (Quick & Easy) appeared first on WPBeginner.

9 Best WordPress RSS Feed Plugins Compared (2020)

Are you looking for the best WordPress RSS feed plugin for your website?

RSS feed plugins makes it easy to automatically pull content from other websites and display it on yours. They can also be used to boost engagement, drive traffic, and increase page views.

In this article, we’ll share our pick of the best WordPress RSS feed plugins that you can use on your website.

Comparing the best WordPress RSS feed plugins

Why Use a WordPress RSS Feed Plugin?

RSS Feeds allow websites to publish content in an XML file format. This allows users to subscribe to content using RSS feed readers, like Feedly.

By default, WordPress publishes RSS feeds for your blog posts, categories, authors, and more.

Apart from reading, RSS feeds can also be used to pull content from one website and display it anywhere else.

You may want to use an RSS feed plugin to curate content from different websites that you like. You can also automatically pull latest content from social media websites like Facebook, Instagram, Twitter, and YouTube to display them in WordPress.

While WordPress comes with a RSS widget built-in, it does not let you customize the display to add thumbnails, social buttons, etc. This is why most people use a RSS plugin for the added functionality.

That being said, let’s tale a look at some of the best WordPress RSS feed plugins that you can use.

1. WP RSS Aggregator

WP RSS Aggregator

WP RSS Aggregator is the best WordPress plugin to turn a WordPress website into a content aggregator. It allows you to import, merge, and display RSS feeds on your WordPress website without any coding.

It allows you to fetch content from your other web properties, third-party sources, and other blogs. You can even import that content as blog posts in WordPress and store them in your WordPress database.

You can use it to fetch job listings, real-estate listings, news articles, or curate top posts from your favorite blogs. With their add-ons, you can even pull full content including images from RSS feeds that only include excerpts.

The plugin can be used for auto-blogging. However, using it to scrape full content from third-party websites may lead to copyright violation and legal trouble.

For detailed instructions, see our guide on how to fetch and display RSS feeds in WordPress.

Pricing: Starting from $59 per year with one year of support and updates.

2. Smash Balloon Instagram Feed

Smash Balloon Instagram Feed

If you’re looking to embed latest Instagram content from your profile or Hashtag, then you need Smash Balloon Instagram Feeds plugin. Since Instagram doesn’t make it easy to use RSS feeds, this plugin uses their API to automatically display photos from your Instagram account in WordPress.

It is easy to use and comes with multiple layouts and styles. The plugin is mobile responsive by default which means it looks good on all devices and screen sizes.

Instagram Feeds also allows you to create custom Instagram feeds using Hashtags. You can also directly link your Instagram posts to product pages in WooCommerce to increase sales.

It also supports Instagram Stories, and you can display them in a lightbox popup on your website, resulting in more user engagement for your stories.

Pricing: They have a free Instagram feed plugin with limited features. Custom Instagram Feed Pro starts from $49 per year for personal plan to use on 1 site. You can also get all Smash Balloon plugins for unlimited sites at $299 per year.

3. Smash Balloon Custom Facebook Feed

Smash Balloon Facebook Feed

Smash Balloon Custom Facebook Feed is the best Facebook feed plugin on the market. It allows you to easily display posts from your Facebook pages and groups.

Facebook decides your content’s reach based on your user engagement. This means that users will see more of your Facebook updates when they interact with it.

Adding your latest Facebook content feed to your WordPress site is an easy way to boost engagement. Smash Balloon’s Custom Facebook Feeds allows you to beautifully display latest posts from your Facebook groups and pages in WordPress.

It is easy to use, and you can connect as many groups and pages as you like. You can also merge feeds to create one feed or use multiple feeds in different areas of your website.

The plugin comes with multiple layouts and allows you to customize the appearance of your Facebook feed to match your website layout.

Pricing: They have a free Facebook feed plugin with limited features. Custom Facebook Feeds Pro starts from $49 per year for personal plan to use on 1 site. You can also get all Smash Balloon plugins for unlimited sites at $299 per year.

4. Feedzy RSS Feeds

Feedzy RSS Feeds

Feedzy RSS Feeds is another excellent WordPress RSS feed to blog post plugin. It allows you to fetch content from unlimited RSS feeds and display them on your website.

Feedzy comes with several templates to control how you display feeds. You can rearrange post layout to your liking which makes content look native to your website.

It also integrates with your affiliate links allowing you to display products with your affiliate ID and make money by sending affiliate traffic to third party websites.

For those looking for auto-blogging features, Feedzy comes with an article spinner that uses WordAI to rephrase articles you import to your blog. (Note: that it will still be copyright infringement and may lead to legal issues).

Pricing: Starting from $59 per year. It also has a lifetime plan, which starts from $159.

5. Smash Balloon Twitter Feeds

Smash Balloon Twitter Feeds

Smash Balloon Twitter Feeds is the easiest way to display Twitter feeds on your WordPress website. It helps you add social proof, increases Twitter followers, and boosts engagement.

The plugin allows you to easily fetch Twitter feeds and display them on your site. It comes with beautiful layouts and styles, including list, grid style, carousel, and more.

You can create custom Twitter feeds by merging different accounts, hashtags, keywords, and more. It comes with infinite scroll and users can load more tweets as they scroll down.

It shows native Twitter engagement buttons such as: Like, retweet, and reply actions. All media and videos open in a lightbox popup, so your users never leave your website.

The plugin is lightning fast with built-in caching and looks great on all devices with responsive layout.

Pricing: They have a free Twitter feed plugin with limited features. Custom Twitter Feed Pro starts from $49 per year for personal plan to use on 1 site. You can also get all Smash Balloon plugins for unlimited sites at $299 per year.

6. Smash Balloon Feeds for YouTube

Smash Balloon YouTube Feeds

Smash Balloon Feeds for YouTube is the best YouTube feed plugin for WordPress. It allows you to showcase your YouTube videos on your website.

By default, you can easily embed videos in WordPress by simply pasting the URL of your YouTube video. However, this does not give you any design options, and you have to manually add each video.

With Smash Balloon’s YouTube feeds, you can automatically display latest videos on your website as soon as they are uploaded on YouTube.

The plugin comes with beautiful layout choices like the masonry grid layout, gallery layout, list, and more. All layouts are mobile-friendly and look great on smaller screens.

It also supports live streaming and allows you to automatically display a feed of upcoming and currently playing live streams from your channel.

You can create custom feeds by keywords, multiple channels, and combine feeds. It includes custom actions when YouTube video completes like displaying a link to a product page or displaying thumbnails of your other videos.

Pricing: They have a free YouTube feed plugin with limited features. Custom YouTube Feeds Pro starts from $49 per year for personal plan to use on 1 site. You can also get all Smash Balloon plugins for unlimited sites at $299 per year.

7. Featured Image in RSS Feed

Featured image in RSS feed

Featured Image in RSS Feed makes it super easy to add featured image to your RSS feeds in WordPress without writing code. You can choose multiple styles for your post thumbnail or featured image.

It uses standard formatting options for the featured image, which allows news aggregators like Feedly to automatically detect and display it prominently. It also works with top email marketing services that support RSS to email list feature.

Pricing: The base plugin is free. There is a paid version with extra features starting from $59.88 / year for a single site license.

8. Super RSS Reader

Super RSS Reader

Super RSS Reader is an excellent way to display content from multiple RSS feeds in your WordPress sidebar.

It comes with an easy to use widget. You can also display post titles as a news ticker, perfect for websites that want to show breaking news from other sources.

The widget also supports tabbed layout to display feeds from multiple sources. It includes featured image support, multiple styles, and color choices.

Pricing: Free

9. CBX RSS Feed for Custom Post Types

CBX RSS Feed for Custom Post Types

CBX RSS Feed for Custom Post Types is an easy way to display your custom post types feeds into your default WordPress feed.

By default, WordPress allows you to add RSS feed support for each custom post type. However, most people subscribing to your website will only get to see your main feed which only includes blog posts.

The plugin fixes this issue and allows you to merge your custom post type feeds into main WordPress feed. You can simply select which post types are displayed in your main RSS feed and save your changes.

Pricing: Free

We hope this article helped you find the best RSS feed plugins for your WordPress website. You may also want to see our comparison of the best WordPress page builder plugins and best live chat software for small business.

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

The post 9 Best WordPress RSS Feed Plugins Compared (2020) appeared first on WPBeginner.

How to Fix WordPress RSS Feed Errors

Are you encountering RSS feed errors on your WordPress site? RSS feeds help users subscribe to your blog using news reader apps like Feedly.

Since RSS feeds are published in the XML markup language, a tiny mistake in the feed can make it unreadable, and users will not be able to see new content in their news feeds.

Other apps also rely on getting content updates from your WordPress RSS feed. For example, if you use IFTTT to automate social sharing of your new posts, then that would stop working as well.

In this article, we will show you how to easily fix RSS feed errors in WordPress. We will also talk about what causes those errors and how to avoid them in the future.

Fixing WordPress RSS feed errors

Most Common WordPress RSS Feed Errors

Most common WordPress RSS feed errors are caused by poor formatting.

WordPress outputs RSS feeds in XML which is a strict markup language. A missing line break or an extra tab can break your RSS feed.

The RSS error message will look something like this:

XML Parsing Error: XML or text declaration not at start of entity
Location: http://example.com/feed
Line Number 2, Column 1:

Depending on what browser you are using, your RSS feed error message may vary.

You can also see this error message when visiting your feed in a browser.

Warning: Cannot modify header information – headers already sent by (output started at /home/username/example.com/wp-content/themes/twentysixteen/functions.php:433) in /home/username/example.com/wp-includes/pluggable.php on line 1228

If you are using FeedBurner, then your errors may look different.

Having said that, let’s take a look at what causes these RSS feed errors and how to fix them.

Manually Fixing RSS Feed Errors in WordPress

The most likely reason for your RSS feeds to show error is poor formatting. This poor formatting can be caused by a blank space after closing PHP tag in a plugin or in your theme’s functions.php file.

If you recently added a code snippet to your theme or child theme‘s functions.php file. Then you need to edit your functions file.

If there is a closing PHP tag at the end of your functions file, then you need to make sure that there is no extra space or line breaks after it.

Ideally, the closing PHP tag is not required at the end of the file. This is why it would be best if you remove the closing php tag altogether.

This should fix the problem in most cases. However, if it does not fix your RSS feed error, then continue reading.

Disable RSS Feed Related Plugins

If you are using a WordPress plugin that modifies your website’s RSS feed or creates a new one, then you need to disable that plugin.

If you are unsure, then you can temporarily disable all WordPress plugins.

Deactivate all WordPress plugins

Next, check your RSS feed for the error. If the error disappears, then this means one of the plugins installed on your website was the culprit.

You can now reactivate your installed plugins one by one and check your RSS feed after activating each plugin. This way you will be able to find out exactly which plugin is causing the issue.

Once you have located the plugin, you can contact the plugin’s support for an update or find an alternative plugin that does the same thing.

Temporarily Switch to a Default Theme

Occasionally, a poorly coded WordPress theme function can also affect your WordPress RSS feed. To see if the problem is caused by your WordPress theme, you need to temporarily switch to a default WordPress theme.

Simply go to Appearance » Themes page and if you already have a default theme installed then activate it.

Activate default WordPress theme

Default themes include Twenty Nineteen, Twenty Seventeen, Twenty Sixteen, and so on. If you don’t have one installed on your website, then you can click on the Add New button to install and activate it. See our guide on how to install a WordPress theme for step by step instructions.

Install and activate a default WordPress theme

After switching to the default theme, check your WordPress feed for error. You can visit your feed in a browser window or test it with a feed validator tool.

If the error disappears, then this means your WordPress theme was causing the issue. You can contact the theme author for support or find a suitable new theme for your website.

We hope this article helped you fix WordPress RSS feed errors on your site. You may also want to take a look at our guide on how to increase your website traffic and why you need to build an email list right away.

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

The post How to Fix WordPress RSS Feed Errors appeared first on WPBeginner.