How to Make Separate RSS Feeds for Each Category in WordPress: The Complete Guide

Do you want to allow your readers to subscribe only to the content topics they care about?

Creating separate RSS feeds for each category in WordPress makes this possible.

According to a 2021 study by Social Media Today, 68% of readers prefer content tailored to their interests. Category-specific RSS feeds let you deliver that.

In this complete guide, I’ll show you two easy methods to create individual RSS feeds for your categories.

After 15 years as a WordPress expert, I’ve learned best practices to implement category feeds for any site.

By the end, you’ll know how to:

  • Find hidden RSS feeds for existing categories
  • Manually build a list of category feed links
  • Automatically generate category feeds using code
  • Optimize feeds for email newsletters and push notifications

Let’s dive in!

Finding Default Category RSS Feeds

Every category you create in WordPress automatically has its own RSS feed URL.

But these URLs are hidden away. Here’s how you can locate them:

  1. In your WordPress dashboard, go to Posts > Categories.
  2. Hover over a category, then click the View link.
  3. This opens the category page on your site. Copy the URL from your browser address bar.
  4. Append /feed/ to the end of the URL.

For example, your News category may have an archive URL like:

https://example.com/category/news/

The RSS feed URL would then be:

https://example.com/category/news/feed/

Repeat this for every category you want a feed for. You now have the direct URLs to access each category’s RSS feed.

These can be shared as-is with readers who use feed readers. But for most people, feed URLs alone aren’t very useful.

Let’s look at two ways to present category feeds to readers.

Method 1: Manually Build a Category Feeds List

The first method is to manually create a list of your category names along with their corresponding RSS feed links.

Here’s how to do this:

  1. Create a new page or post where you want to display the list.
  2. Add a List block and type the name of each category on a separate line.
  3. Highlight the first category name, then click the Link button in the block toolbar.
  4. Paste the category‘s feed URL into the link field and click Apply.
  5. Repeat steps 3-4 to add a feed link for every category name in your list.

This gives you a page with clickable category names that open the RSS feeds.

However, any time you add, delete, or edit categories, you’ll have to manually update this list. That‘s why most site owners prefer an automated method.

Method 2: Automatic Category Feed List (Recommended)

For a category feeds list that updates automatically, you can use a simple WordPress code snippet.

The easiest way to add snippets is with a plugin like WPCode.

WPCode lets you add PHP, HTML, JavaScript, and CSS code without manually editing theme files. This avoids breaking your site.

Here‘s how to create an automatic category feeds list with WPCode:

  1. Install and activate the WPCode plugin.
  2. Go to Snippets > Add New.
  3. Give your snippet a name like "Category Feeds List".
  4. Select PHP as the language.
  5. Paste this code into the editor:
// List category feeds
function wp_cat_feeds() {

  $feeds = wp_list_categories(array(
    ‘orderby‘    => ‘name‘, 
    ‘feed_image‘ => ‘https://example.com/img/icon-rss.png‘
  ));

  return ‘<ul>‘ . $feeds . ‘</ul>‘;

}

// Create shortcode to display list
add_shortcode( ‘cat_feeds‘, ‘wp_cat_feeds‘ );
  1. Set Auto Insert to insert the snippet automatically.

  2. Click Save Snippet to store your code.

  3. Add the shortcode [cat_feeds] on any page to display the list.

This automatically generates a list of your categories with RSS icons linked to the feeds. Much easier than updating manually!

To customize the icon, replace the feed_image URL in the code with your own image. You can also show post counts by removing orderby => name from the code.

Optimizing Category Feeds for Readers

On their own, RSS feeds aren‘t very usable for most readers. But you can optimize your category feeds by plugging them into:

Email Newsletters

Email services like MailerLite and Mailchimp let you send automated RSS emails to subscribers.

You can allow readers to pick and choose which category feeds they want emails from.

According to 2021 data from HubSpot, email has a 40x higher ROI than social media. Category emails help convert readers into active subscribers.

Push Notifications

Mobile push notifications are an excellent way to alert readers of new posts in specific categories.

Tools like PushEngage make it easy to send instant push notifications from RSS feeds directly to your readers‘ smartphones.

Research shows that push notifications have a 97% open rate. Alerts for relevant new content improve reader engagement.

So in summary, take advantage of your existing category RSS feeds in WordPress. Building an automated list makes them easy to manage.

Then optimize those feeds to deliver content straight to your readers through email newsletters and push notifications.

This allows you to provide a tailored experience based on their interests. And surfaces your latest content right on their devices.

Now you have a complete guide to creating and optimizing category RSS feeds in WordPress. Let me know if you have any other questions!

Written by Jason Striegel

C/C++, Java, Python, Linux developer for 18 years, A-Tech enthusiast love to share some useful tech hacks.