How to Make a Separate RSS Feed for Each Category in WordPress – Website Tips

Curated by WorkingFromHome

This article is an excerpt from the original article found in the Read More link – please follow for full article.

Do you want to make a separate RSS feed for each category in WordPress?

Categories allow you to easily sort your content into major sections. Adding category RSS feeds can help your users subscribe to specific areas of your website that interest them.

In this article, we will show you how to easily make a separate RSS feed for each category in WordPress. We’ll also talk about how you can use them effectively to grow your website.

Locating RSS Feed for Categories in WordPress

Categories and tags are two of the main default taxonomies in WordPress. They allow you to easily sort and organize your content into different subjects and topics.

By default, each category on your WordPress website has its own RSS feed. You can locate this RSS feed by simply adding ‘feed’ at the end of the category page URL.

For instance, if you had a category called ‘News’ with a URL like this:

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

Then its RSS feed would be located at the following URL:

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

Tip: You can find your category URL by visiting Posts » Categories page and clicking on the View link below a category.

Display Your Category RSS Feed Links in WordPress

Now that you have located the RSS feed URLs for your categories, let’s take a look at some of the ways that you can share them with visitors on your WordPress website.

1. Add Links to Category RSS Feeds in WordPress

The easiest way to point users to a category RSS feed is by adding a link to the category feed.

You can simply edit a post or page and add a plain text link anywhere you want.

You can use this method to manually create a list of links to all your category RSS feeds.

However, what if you add, delete, or merge categories in the future, then you will have to manually update that list.

Wouldn’t it be nice if you can show a dynamic list of category RSS feeds that is automatically updated? Next we’ll show you how to do just that.

2. Manually Display a List of Category Feeds

This next method allows you to display a list of categories with links to the category-specific RSS feed. Best of all, the list will update automatically if you add or remove a category on your site.

For this method, you’ll need to add some custom code to your WordPress website. If you haven’t done this before, then take a look at our guide on how to easily add custom code snippets in WordPress.

First, you need to find an image that you want to use as the RSS feed icon. For this tutorial, we are using the RSS feed icon that is 32×32 pixels in dimensions.

After that, you need to upload that image to your website. Simply go to Media » Add New page to upload your image and then click on the ‘Copy URL to Clipboard’ button.

Now paste this image URL in a plain text editor like Notepad or TextEdit. You’ll need it in the next step.

After that, you need to paste the following code to your theme’s functions.php file or a site-specific plugin.

  function wpbeginner_cat_feed_list() {   $string .=  '
    '; $string .= wp_list_categories( array( 'orderby' => 'name', 'show_count' => true, 'feed_image' => '/path/to/feed-image.png"http://www.wpbeginner.com/"echo' => ) ); $string .= '
'; return $string; } $add_shortcode('wpb-cat-feeds', 'wpbeginner_cat_feed_list' );

You will need to replace the ‘/path/to/feed-image.png’ with the URL of the feed icon image you copied earlier.

Now you can use the [wpb-cat-feeds] shortcode anywhere on your WordPress website to display the list of categories with the RSS feed icon next to each category.

3. Show RSS Feed Subscription Option on Category Pages (Advanced)

Normally, WordPress category archive pages don’t have an option to subscribe. You can easily change that by adding a link to the RSS feed subscription on each category page.

To do that, you’ll need to make changes to your WordPress template files. Simply add the following code to the category.php or archive.php template in your WordPress theme.

  

cat_ID ) . "http://www.wpbeginner.com/" title="Subscribe to this category" rel="nofollow">Subscribe

'; } ?>

After you save your changes, you can visit any category page to see the subscribe link in action.

Tip: Need help finding out which file to edit in your WordPress theme? See our complete WordPress template hierarchy cheat sheet for beginners to figure this out.

How to Take Advantage of Category RSS Feeds in WordPress

Category RSS feeds allow your users to subscribe only to areas that interest them the most.

For instance, if you have a technology news blog, then your users can choose to subscribe only to news about the devices that they use.

However, a plain RSS feed isn’t readable w

For the Full Article
Please Continue Reading Here: How to Make a Separate RSS Feed for Each Category in WordPress

Commentary:
Quite intersting information and links can be found on the complete article.
source – WPBeginner.com

You May Also Like…

How to Organize or Reorder WordPress Pages with Drag & Drop – Website Tips

How to Organize or Reorder WordPress Pages with Drag & Drop – Website Tips

Last updated on October 16th, 2021 by Editorial Staff Do you want to organize your WordPress pages by simply dragging and dropping them where you want? WordPress will arrange your blog posts and pages based on the published date or alphabetical order by default. However, with the right WordPress plugin, you can reorder your pages to organize them more logically. In this article, we will show you how to reorder and organize WordPress pages with drag and drop. Why Change the Order of WordPress Pages? By default, WordPress will organize your pages alphabetically or use the publish date to show the recent page first. If you have a lot of pages, it can be difficult to manage them and find the pages you need in your WordPress dashboard. Luckily, you can use a simple plugin to rearrange the pages by simply dragging and dropping them where you want. Let’s take…

7 Best WordPress Image Compression Plugins Compared (2021) – Website Tips

7 Best WordPress Image Compression Plugins Compared (2021) – Website Tips

Are you looking for the best WordPress image compression plugin for your website? Image compression plugins allow you to easily optimize images in WordPress for better speed and performance automatically. In this article, we have compared the best image compression plugins for WordPress. When Do You Need a WordPress Image Compression Plugin? Images are larger in size than plain text which means they take longer to load and can slow down your website. However you’ve probably heard the saying: “a picture is worth a thousand words”. Images make your content more engaging and interactive. To improve your WordPress website speed, you need to optimize your images for the web. Since optimizing your images can make your site load faster, it will improve your WordPress SEO, and help you get more traffic. The best way to do this is by using Photoshop or another image editing software before you upload the…

Working From Home TV …

Tips to enhance your own website…

How to Organize or Reorder WordPress Pages with Drag & Drop – Website Tips

How to Organize or Reorder WordPress Pages with Drag & Drop – Website Tips

Last updated on October 16th, 2021 by Editorial Staff Do you want to organize your WordPress pages by simply dragging and dropping them where you want? WordPress will arrange your blog posts and pages based on the published date or alphabetical order by default. However, with the right WordPress plugin, you can reorder your pages to organize them more logically. In this article, we will show you how to reorder and organize WordPress pages with drag and drop. Why Change the Order of WordPress Pages? By default, WordPress will organize your pages alphabetically or use the publish date to show the recent page first. If you have a lot of pages, it can be difficult to manage them and find the pages you need in your WordPress dashboard. Luckily, you can use a simple plugin to rearrange the pages by simply dragging and dropping them where you want. Let’s take…

7 Best WordPress Image Compression Plugins Compared (2021) – Website Tips

7 Best WordPress Image Compression Plugins Compared (2021) – Website Tips

Are you looking for the best WordPress image compression plugin for your website? Image compression plugins allow you to easily optimize images in WordPress for better speed and performance automatically. In this article, we have compared the best image compression plugins for WordPress. When Do You Need a WordPress Image Compression Plugin? Images are larger in size than plain text which means they take longer to load and can slow down your website. However you’ve probably heard the saying: “a picture is worth a thousand words”. Images make your content more engaging and interactive. To improve your WordPress website speed, you need to optimize your images for the web. Since optimizing your images can make your site load faster, it will improve your WordPress SEO, and help you get more traffic. The best way to do this is by using Photoshop or another image editing software before you upload the…

How to Exclude Pages from WordPress Search Results (Step by Step) – Website Tips

How to Exclude Pages from WordPress Search Results (Step by Step) – Website Tips

Do you want to learn how to exclude pages from the WordPress search results? By default, the internal search on your WordPress site will include all posts and pages in the search results. To make it easier for your site visitors to find what they’re looking for, you may want to exclude certain content, so it never appears in those results. In this article, we’ll show you how to exclude certain pages from the WordPress search results, step by step. Why Exclude Pages from WordPress Search Results? The default WordPress site search includes all of your posts, pages, and custom post types in the search results. This works well enough for many WordPress website owners. However, if you’re running an online store, then you may want to hide pages like your account page, checkout page, thank you page, and more. The same goes for those running membership websites or online…

0 Comments

Submit a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.