12 Tricks to Optimize Your WordPress RSS Feed (Fast & Straightforward)

No Comments

Do you wish to optimize your RSS feed in WordPress?

Each WordPress web site has an RSS feed by default. You may optimize this feed to guard your content material, ship extra visitors to your web site, and extra.

On this article, we’ll present you find out how to optimize and customise your RSS feeds the precise approach.

Why Optimize Your WordPress RSS Feeds?

RSS feeds provide a approach in your readers to subscribe and browse your weblog posts of their favourite feed reader apps like Feedly.

Though feed readers aren’t as common as they as soon as have been, there are nonetheless many readers preferring to learn WordPress weblog content material this fashion.

By optimizing your RSS feed you can even stop content material scraping, get extra backlinks, ship visitors to your web site, and extra.

With that stated, let’s get into our professional ideas for optimizing your RSS feed.

1. Create an RSS Feed Sitemap

An RSS sitemap is totally different from an XML sitemap. RSS sitemaps solely include your most up-to-date content material, which helps Google to maintain your content material brisker in search outcomes.

In the event you publish content material continuously, then this could result in a lift in your search engine rankings.

All in One web optimization means that you can add an RSS sitemap to your web site simply, with out having to code.

The very first thing you must do is set up and activate the All in One web optimization plugin. For extra particulars, see our step-by-step information on find out how to set up a WordPress plugin.

Upon activation, you’ll be prompted to arrange the plugin. You may comply with the guided steps within the setup wizard, or see our information on find out how to arrange All in One web optimization for WordPress.

AIOSEO allows RSS sitemaps routinely, so there’s nothing else you must do.

In the event you’d prefer to double test, merely go to All in One web optimization » Sitemap after which click on on the ‘RSS Sitemap’ tab.

You may see that the ‘Allow Sitemap’ toggle within the ‘RSS Sitemap’ field is already enabled.

You too can set the variety of posts and the put up varieties you wish to embrace within the ‘Sitemap Settings’ field.

We’ll go away the default settings, however you’ll be able to embrace extra posts or solely embrace sure put up varieties.

Earlier than you allow the display, ensure that to click on the ‘Save Modifications’ button.

Now you’ve enabled your RSS sitemap in your web site.

To submit your new RSS sitemap to Google, you’ll be able to see our information on find out how to add your WordPress web site to Google Search Console. It’s the identical course of as submitting an XML sitemap.

2. Edit Your RSS Feed Earlier than and After Content material

By default, WordPress RSS feeds will present your latest put up content material, and there’s no built-in choice to customise that content material in your readers.

Fortunately you should utilize the All in One web optimization plugin to simply customise your RSS feed earlier than and after content material.

Merely comply with the identical steps as above to put in, activate, and arrange the plugin.

After that, navigate to All in One web optimization » Common Settings after which click on the ‘RSS Content material’ menu choice.

On this display, you’ll be able to add any content material you wish to show earlier than and after every put up in your RSS feed.

You may add HTML, sensible tags for hyperlinks, and different metadata to every part.

When you’re happy together with your adjustments, ensure that to click on the ‘Save Modifications’ button to save lots of your RSS feed.

3. Shield Your RSS Feed From Content material Scrapers

Content material scraping is when content material is taken your web site, normally through your RSS feed, and republished on another person’s web site as their very own.

It may be very irritating to see somebody stealing your content material, monetizing it, and even outranking your web site within the search outcomes.

Fortunately, you’ll be able to customise your RSS feed to truly profit your web site if somebody steals your content material through your RSS feed.

For extra particulars, see our newbie’s information to stopping weblog content material scraping in WordPress.

4. Present Excerpt As a substitute of Full Article in RSS Feed

Exhibiting your full article within the RSS feed lets your customers learn all the article of their feed reader. This may negatively have an effect on your web page views, promoting income, and conversion charges.

By exhibiting the article abstract as an alternative of the complete article in your RSS feed, you require readers to return to your WordPress web site to learn the complete put up.

WordPress comes with a built-in answer. Merely go to Settings » Studying in your WordPress admin dashboard.

Then, scroll right down to the part titled ‘For every put up in a feed, embrace’ and choose the ‘Excerpt’ radio button.

You too can management the variety of posts that show in your RSS feed as effectively.

Within the ‘Syndication feeds present the newest’ field, merely enter a quantity into the field.

Earlier than you allow this display, ensure that to click on the ‘Save Modifications’ button to replace your RSS feed settings.

5. Add a Featured Picture to Posts in RSS Feed

By default, WordPress doesn’t add your put up featured pictures to your RSS feed. When your customers learn your put up in a feed reader, it’ll typically pull the primary picture in your put up.

You may change this by including code to your WordPress recordsdata. In the event you haven’t accomplished this earlier than, then see our newbie’s information to pasting snippets from the net into WordPress.

All you must do is add the next code to your features.php file, in a web site particular plugin, or by utilizing a code snippets plugin.

operate wpb_rsstutorial_featuredimage($content material) {
international $put up;
if(has_post_thumbnail($post->ID)) {
$content material = ‘<p>’ . get_the_post_thumbnail($post->ID) .
‘</p>’ . get_the_content();
}
return $content material;
}
add_filter(‘the_excerpt_rss’, ‘wpb_rsstutorial_featuredimage’);
add_filter(‘the_content_feed’, ‘wpb_rsstutorial_featuredimage’);

This code merely provides your featured picture inside a paragraph simply earlier than the put up content material.

6. Add Customized Put up Varieties to Your RSS Feed

Many WordPress websites use customized put up varieties to create separate sections from common weblog articles.

For instance, right here at WPBeginner, we created separate customized put up varieties for our Offers and Glossary sections.

In the event you publish a number of content material utilizing totally different customized put up varieties, then you definitely’ll wish to add these to your foremost feed.

To do that, you’ll want so as to add the next code to your features.php file, in a web site particular plugin, or by utilizing a code snippets plugin.

operate myfeed_request($qv) {
if (isset($qv[‘feed’]) && !isset($qv[‘post_type’]))
$qv[‘post_type’] = array(‘put up’, ‘books’, ‘motion pictures’);
return $qv;
}
add_filter(‘request’, ‘myfeed_request’);

This code provides two customized put up varieties, ‘books’ and ‘motion pictures’, to the primary RSS feed. Be sure you change these with your personal customized put up varieties.

7. Add Extra Textual content to Put up Titles in RSS

Including further textual content to your put up titles in RSS may be useful for those who create a number of sorts of put up content material.

For instance, this can assist your readers distinguish between visitor posts, common weblog content material, and sponsored content material.

Right here’s a code snippet you should utilize to show the put up class within the title:

operate wpb_rsstutorial_titlecat($content material) {
$postcat = “”;
foreach((get_the_category()) as $cat) {
$postcat .= ‘ (‘.$cat->cat_name . ‘)’;
}
$content material = $content material.$postcat;
return $content material;
}
add_filter(‘the_title_rss’, ‘wpb_rsstutorial_titlecat’);

For extra particulars and examples, see our information on find out how to fully customise your WordPress RSS feeds.

8. Enable Customers to Subscribe to RSS Feed through E mail

Not all of your customers wish to use a feed reader to subscribe to your posts. Lots of people will favor to subscribe by e-mail as an alternative. That’s one motive why having an e-mail e-newsletter is necessary.

To ship RSS emails routinely, we advocate utilizing Sendinblue. It’s a preferred e-mail advertising and marketing service supplier that has a without end free plan to ship as much as 300 emails a day.

As soon as your e-mail record is ready up, you’ll be able to routinely ship RSS emails once you publish a brand new weblog put up.

For extra particulars, see our information on find out how to notify subscribers of recent posts in WordPress.

9. Enable Customers to Subscribe to Classes in RSS Feed

Every class in your WordPress web site will routinely have its personal RSS feed. In the event you run an enormous weblog with many numerous classes, then this lets your readers solely subscribe to classes that curiosity them.

Nonetheless, a number of customers don’t understand they’ll simply subscribe to particular classes. You can also make this simpler in your readers by highlighting this in your web site.

For extra particulars, see our information on find out how to make separate RSS feed for every class in WordPress.

10. Add Customized Discipline Knowledge to Your RSS Feed

Customized fields allow you to add additional metadata to your WordPress posts and pages. Nonetheless, this metadata isn’t included in your default RSS feed.

To show customized fields in your RSS feed, merely add the next code snippet to your features.php file, in a site-specific plugin, or by utilizing a code snippets plugin.

operate wpb_rsstutorial_customfield($content material) {
international $wp_query;
$postid = $wp_query->post->ID;
$custom_metadata = get_post_meta($postid, ‘my_custom_field’, true);
if(is_feed()) {
if($custom_metadata !== ”) {
// Show customized discipline information under content material
$content material = $content material.”<br /><br /><div>”.$custom_metadata.”</div>
“;
}
else {
$content material = $content material;
}
}
return $content material;
}
add_filter(‘the_excerpt_rss’, ‘wpb_rsstutorial_customfield’);
add_filter(‘the_content’, ‘wpb_rsstutorial_customfield’);

This code checks if the customized discipline is getting used and if the RSS feed is being displayed. After that, it’ll add the customized discipline information under the put up content material.

11. Delay Posts From Showing in RSS Feed

Delaying posts from showing in your RSS feed can prevent from unintentional publishing and can assist you beat content material scrapers, if that’s a problem you commonly face.

If you delay posts from showing in your RSS feed, you give the major search engines time to crawl and index your content material earlier than it seems elsewhere.

Plus, you’ll be able to test for any typos earlier than it will get despatched out to RSS subscribers.

To do that, you’ll want so as to add the next code to your features.php file, in a site-specific plugin, or by utilizing a code snippets plugin.

operate publish_later_on_feed($the place) {

international $wpdb;

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

// worth for wait; + system
$wait = ’10’; // integer

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

// add SQL-sytax to default $the place
$the place .= ” AND TIMESTAMPDIFF($system, $wpdb->posts.post_date_gmt, ‘$now’) > $wait “;
}
return $the place;
}

add_filter(‘posts_where’, ‘publish_later_on_feed’);

This code will add a ten minute delay earlier than posts seem in your RSS feed. You may change it to your personal wants by altering the ten and MINUTE values.

12. Add Social Buttons to Your WordPress RSS Feeds

Most RSS feed readers don’t have social sharing options, or they’re not very noticeable. Nonetheless, you’ll be able to add your personal social media icons to your RSS feed to encourage sharing.

First, you’ll must create picture icons for the social media networks you wish to add. For this tutorial, we created pictures for Fb and Twitter and uploaded them by going to Media » Add New.

After you add your picture recordsdata, you must copy the ‘File URL’ and paste it into your favourite textual content editor to put it aside for the following step.

For extra particulars, see our information on find out how to get the URL of pictures you add in WordPress.

Subsequent, you must add the next code snippet to your features.php file, in a site-specific plugin, or by utilizing a code snippets plugin.

// add customized feed content material
operate wpb_add_feed_content($content material) {

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

// Encoding put up hyperlink for sharing
$permalink_encoded = urlencode(get_permalink());

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

// Content material you wish to show under every put up
// That is the place we are going to add our icons

$content material .= ‘<p>
<a href=”http://www.fb.com/sharer/sharer.php?u=’ . $permalink_encoded . ‘” title=”Share on Fb”><img src=”Fb icon file url goes right here” title=”Share on Fb” alt=”Share on Fb” width=”64px” peak=”64px” /></a>

<a href=”http://www.twitter.com/share?&textual content=’. $post_title . ‘&amp;url=’ . $permalink_encoded . ‘” title=”Share on Twitter”><img src=”Fb icon file url goes right here” title=”Share on Twitter” alt=”Share on Twitter” width=”64px” peak=”64px” /></a>
</p>’;
}

return $content material;
}

add_filter(‘the_excerpt_rss’, ‘wpb_add_feed_content’);
add_filter(‘the_content’, ‘wpb_add_feed_content’);

This code above will merely add the social sharing buttons for Twitter and Fb. You have to change the src= attribute within the picture tag with your personal picture URLs that you simply pasted into your textual content editor earlier.

In the event you’ve optimized your RSS feed and are seeing errors, then see our information on find out how to repair RSS feed errors.

We hope this text helped you discover ways to optimize your WordPress RSS feed. You might also wish to see our professional picks on the greatest e-mail advertising and marketing companies for small companies and our information on how to decide on the very best web site builder.

In the event you appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. You too can discover us on Twitter and Fb.

The put up 12 Tricks to Optimize Your WordPress RSS Feed (Fast & Straightforward) appeared first on WPBeginner.

    About Marketing Solution Australia

    We are a digital marketing company with a focus on helping our customers achieve great results across several key areas.

    Request a free quote

    We offer professional SEO services that help websites increase their organic search score drastically in order to compete for the highest rankings even when it comes to highly competitive keywords.

    Subscribe to our newsletter!

    More from our blog

    See all posts

    Leave a Comment