WP AI Agent
Features Pricing Blog Contact Download Plugin Manage Subscription Get Free Key →

How to Add an RSS Feed to WordPress: Complete Guide

· · 9 min read

Learning how to add an RSS feed to WordPress is one of the smartest moves you can make to grow your audience and automate content distribution. RSS (Really Simple Syndication) feeds allow readers to subscribe to your site and receive updates instantly whenever you publish new content — without ever having to visit your site manually. In this guide, we will walk through every method available, from WordPress's built-in RSS functionality to plugins, widgets, and custom PHP solutions.

Understanding RSS Feeds in WordPress

Before diving into the how-to steps, it helps to understand what an RSS feed is and why WordPress handles it the way it does. An RSS feed is an XML file automatically generated by WordPress that lists your latest posts, pages, or custom content in a structured, machine-readable format.

What WordPress Generates Automatically

WordPress creates several RSS feeds out of the box without any configuration. These include:

  • Main feed: https://yoursite.com/feed/ — lists your latest posts
  • Comments feed: https://yoursite.com/comments/feed/ — lists recent comments
  • Category feed: https://yoursite.com/category/news/feed/ — posts from a specific category
  • Tag feed: https://yoursite.com/tag/wordpress/feed/ — posts with a specific tag
  • Author feed: https://yoursite.com/author/username/feed/ — posts by a specific author

Why RSS Feeds Matter for Your Site

RSS feeds power email newsletter tools, content aggregators, podcast directories, and social automation platforms. Services like Mailchimp, Feedly, and Zapier can connect directly to your WordPress RSS feed to automatically distribute your content. This makes maintaining an active, well-configured RSS feed an essential part of any serious content strategy.

How to Find and Verify Your Default WordPress RSS Feed

Before adding anything new, confirm that your existing WordPress RSS feed is working correctly. Many sites have broken feeds caused by permalink settings or plugin conflicts.

Step-by-Step: Check Your Default Feed

  1. Open your browser and navigate to https://yoursite.com/feed/ — replace yoursite.com with your actual domain.
  2. If you see an XML document listing your posts, your feed is active and working.
  3. If you see a blank page or 404 error, go to Settings > Permalinks in your WordPress dashboard.
  4. Without changing anything, click Save Changes to flush and regenerate rewrite rules.
  5. Revisit https://yoursite.com/feed/ to confirm it now loads correctly.

Validating Your Feed

Use the free W3C Feed Validation Service at validator.w3.org/feed/ to check your feed for errors. Paste your feed URL and the validator will flag any structural issues that could prevent readers or third-party tools from parsing it correctly.

How to Add an RSS Feed Widget to Your WordPress Sidebar

One of the most common use cases is displaying an external RSS feed — such as news from another site — inside your own WordPress sidebar or footer. WordPress includes a built-in RSS widget for exactly this purpose.

Using the Block-Based Widget Editor (WordPress 5.8+)

  1. Log in to your WordPress dashboard and go to Appearance > Widgets.
  2. Click the + (Add Block) button inside the widget area where you want the feed to appear.
  3. Search for RSS and select the RSS block.
  4. In the block settings panel on the right, enter the full URL of the RSS feed you want to display (e.g., https://wordpress.org/news/feed/).
  5. Set the number of items to display (recommended: 5–10).
  6. Toggle options to show the item date, author, or summary as desired.
  7. Click Update to save.

Using the Classic Widget Interface

  1. Go to Appearance > Widgets.
  2. Find the RSS widget in the available widgets list.
  3. Drag it to your desired sidebar or widget area.
  4. Enter the RSS feed URL, a title, and configure display options.
  5. Click Save.

How to Add an RSS Feed Using a Plugin

If you need more control over how RSS feeds are displayed or aggregated, plugins offer advanced features that go far beyond WordPress's native widget. Here are the most reliable options available today.

Using WP RSS Aggregator

WP RSS Aggregator is the most popular RSS feed plugin for WordPress with over 60,000 active installations. It lets you import and display content from any RSS feed on your site.

  1. Go to Plugins > Add New in your dashboard.
  2. Search for WP RSS Aggregator and click Install Now, then Activate.
  3. Navigate to the new RSS Aggregator menu item in your dashboard.
  4. Click Add New Feed Source.
  5. Enter a name for the feed and paste the RSS feed URL into the Feed URL field.
  6. Click Save Feed Source. WordPress will begin importing items from the feed.
  7. To display the feed on a page or post, use the shortcode [wp-rss-aggregator].

Using Feedzy RSS Feeds

Feedzy is another excellent option that provides a block editor integration. After installing and activating the plugin, you can use the dedicated Feedzy RSS Feeds block to display any external feed inside the Gutenberg editor by simply entering the feed URL and customising the layout visually.

How to Add a Custom RSS Feed in WordPress Using PHP

Advanced users may need to create a completely custom RSS feed — for example, a feed that pulls from a custom post type or applies specific filtering logic. This requires adding code to your theme's functions.php file or a custom plugin.

Registering a Custom Feed with add_feed()

WordPress provides the add_feed() function to register custom feed endpoints. Here is an example that creates a custom feed at https://yoursite.com/feed/products/ for a custom post type called product:

/**
 * Register a custom RSS feed for the 'product' post type.
 * Add this to your theme's functions.php or a custom plugin.
 */
function register_product_feed() {
    add_feed( 'products', 'product_feed_output' );
}
add_action( 'init', 'register_product_feed' );

function product_feed_output() {
    $args = array(
        'post_type'      => 'product',
        'posts_per_page' => 20,
        'post_status'    => 'publish',
    );
    $product_query = new WP_Query( $args );
    header( 'Content-Type: ' . feed_content_type( 'rss2' ) . '; charset=' . get_option( 'blog_charset' ), true );
    echo '';
    ?>
    
        
            <?php bloginfo_rss( 'name' ); ?> - Products
            
            Latest products from 
            have_posts() ) : $product_query->the_post(); ?>
            
                <?php the_title_rss(); ?>
                
                
                
            
            
        
    
    

After adding this code, go to Settings > Permalinks and click Save Changes to flush the rewrite rules. Your custom feed will then be accessible at https://yoursite.com/feed/products/.

Flushing Rewrite Rules via WP-CLI

If you manage WordPress from the command line, you can flush rewrite rules instantly using WP-CLI instead of visiting the dashboard:

wp rewrite flush --hard

This command forces WordPress to regenerate the .htaccess file and all rewrite rules, making your new custom feed URL immediately available.

Optimising and Controlling Your WordPress RSS Feed

Once your RSS feed is working, there are several important settings and best practices to configure so the feed serves your audience and your SEO goals effectively.

Controlling How Many Posts Appear in Your Feed

  1. Go to Settings > Reading in your WordPress dashboard.
  2. Find the field labelled Syndication feeds show the most recent.
  3. Change the number to your preferred amount (10–20 is standard).
  4. Click Save Changes.

Choosing Between Full Text and Summary

On the same Settings > Reading page, you will find the option to display either the Full text or a Summary in each feed item. Most content creators choose Summary to encourage readers to visit the full article on their site, which improves page view metrics and ad revenue. If you are targeting podcast listeners or RSS power users, full text is often preferred.

Adding Your RSS Feed Link to Your Site Header

WordPress automatically adds a <link> tag pointing to your RSS feed in the <head> section of every page through the wp_head() function. Browsers and RSS readers use this tag for auto-discovery. Ensure your theme calls <?php wp_head(); ?> inside the <head> element of header.php to preserve this behaviour.

Promoting Your Feed to Subscribers

To help readers find and subscribe to your feed, consider these tactics:

  • Add a visible RSS icon or link in your site header, footer, or sidebar pointing to https://yoursite.com/feed/.
  • Connect your feed to Mailchimp's RSS-to-Email campaign feature to automatically email new posts to subscribers.
  • Submit your feed URL to aggregators like Feedly and Inoreader to increase your content's reach.
  • Use Google Alerts or Zapier integrations that listen to your feed and trigger social media posts automatically.

Taking the time to properly configure and promote your RSS feed ensures that every new piece of content you publish reaches the widest possible audience across multiple channels simultaneously — with zero manual effort on your part after the initial setup.

Frequently Asked Questions

Does WordPress automatically create an RSS feed?

Yes. Every WordPress site automatically generates an RSS feed at https://yoursite.com/feed/ as soon as WordPress is installed. You do not need to install any plugin or write any code to activate the default feed — it works out of the box.

How do I add an external RSS feed to my WordPress website?

You can display an external RSS feed on your WordPress site using the built-in RSS widget under Appearance > Widgets, or by installing a plugin such as WP RSS Aggregator or Feedzy. Both approaches let you paste any external feed URL and control how many items are displayed and what information is shown.

Why is my WordPress RSS feed not working?

The most common cause of a broken WordPress RSS feed is incorrect permalink settings. Go to Settings > Permalinks and click Save Changes without making any changes — this flushes the rewrite rules and usually fixes the issue. Other causes include plugin conflicts, a corrupted .htaccess file, or a theme that does not call wp_head() correctly.

Can I create a custom RSS feed for a specific category or custom post type in WordPress?

Yes. WordPress automatically generates category-specific feeds at URLs like https://yoursite.com/category/news/feed/. For custom post types, you can use the add_feed() PHP function combined with a custom WP_Query to build a fully tailored RSS feed that includes only the content types and fields you specify.

Managing your WordPress RSS feeds, widgets, and custom configurations can feel complex — but it does not have to be. WP AI Agent is an intelligent tool that lets you handle WordPress tasks like adding feeds, updating settings, and managing plugins through simple natural-language AI chat, making site management faster and more accessible for everyone.

Ready to manage WordPress with AI?

Get 100,000 tokens free every month. No credit card required.

Get Your Free License Key →

More from the blog