close

Shelley Bassett

Menu

Close

Missing RSS feeds in WordPress


July 2, 2018

If you're using WordPress, and think you're missing RSS feeds... Don't panic! They're there. Just a little hidden and difficult to find. These simple steps will show you how to find any number of missing feeds.

RSS feeds are still an important part of blogging. It lets people subscribe to the blog, and can also be used in clever automation workflows. But what if you have missing RSS feeds, or simply can’t find the best one to share? WordPress has RSS feeds inbuilt, but sometimes these are in unexpected locations. There are a number of ways to identify these feeds, and some clever ways to perform queries to get a specific one.WordPress has a number of inbuilt RSS feeds that are well documented in the codex. But sometimes these aren’t exactly what you need, especially if you have a complicated blog structure.

The Default Feed

All of the standard posts are included in the default feed. If you have custom permalinks, this is located at your-domain.com/feed . If all else fails, this is the link to check if posts are in the feed. It ought to have everything that is created as a post.

Creating a Custom Feed

If you think you have missing RSS feeds, or need the feed for a custom post type or shop, you may need to manually create the feed. This is much easier than it sounds. Because WordPress uses posts with taxonomies, we can generate very specific RSS feeds using this data. The most common way to do this is by using the URL your-domain.com/feed/?post_type=posttype&category=taxonomy,taxonomy. The codex documents that you can also include tags (tag=) or a specific feed type (eg feed=rss2).

Finding Missing RSS Feeds

When I first started making custom feeds to use in targeted email campaigns, I ran into a problem with calling normal posts this way. I thought I had a missing RSS feed, as none of my categories were showing up. This was to do with my blogs being located at shelleybassett.com/blog instead of the lead domain. To create this functionality, I had pages and redirects. And while it worked well for everyday traffic, it made subscribing to RSS buggy.

The solution was to create categories as a custom taxonomy so I could find them using the custom feed formula. I pasted the following code into my functions.php.

And voila! All the RSS feeds were responding and loading the expected posts. Just like that, I had custom feeds for different categories (and combinations of categories).

Leave a comment

Advertisement

Leave a Message | No comments yet

Leave a Reply

Your email address will not be published. Required fields are marked *