fbpx

Get the Official WPSaviour App Now!

BlogTutorials

How to Setup Auto Discovery for Your WordPress RSS Feeds

Do you notice when you visit WPSaviour, on the URL bar there is a RSS Icon. Often you will see this icon on sites that have set their RSS Feeds on auto discovery. By setting auto-discovery you are encouraging your users to subscribe, and also you are informing those who don’t know to subscribe as well. Most themes ignore this feature which might be a single most important feature that you should have in your themes. In this tutorial, we will show you how you can setup auto discovery for your WordPress RSS Feeds.

Open your header.php and paste the following codes above the </head> code.

1
2
3
4
5
6
7
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo(‘rss2_url’); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo(‘rss_url’); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo(‘atom_url’); ?>" />
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’); ?> RSS Comments Feed" href="<?php bloginfo(‘comments_rss2_url’); ?>" />

Many credible sites in the industry has taken this step to ensure that their readers subscribe to their sites. You should check if these codes are in your header file, if not then then you should add it. Don’t forget if you want to track your RSS Subscribers, then you should redirect your feeds to FeedBurner.

Related posts
BlogTutorials

Install WordPress On Ubuntu Locally With LAMP

BlogTutorials

Theme Customizer Boilerplate – Conditional Options, Child Themes and Plugins

BlogTutorials

WooCommerce Recently Viewed Products Shortcode Plugin

BlogTutorials

Make A WordPress Dashboard Widget Configurable

Sign up for our Newsletter and
stay informed

Leave a Reply

Your email address will not be published.