Mark Zahra
Mark has been involved with WP RSS Aggregator for almost a decade, from running customer support to now leading RebelCode, the company behind the plugin, as CEO. He has a passion for content and news, especially the concept of ethically sharing content to help each other grow.
Mark Zahra
✨ Just Launched
Rewrite RSS feeds into original content
Publishers
Generate and publish unique content based on trusted sources.
Industry Insights
Rewrite industry updates in a voice your audience understands.
News Outlets
Share news from various outlets, rewritten into original pieces.
Table of contents
Streamline your
content-sharing process
Get started with WP RSS Aggregator today and unlock the full potential of RSS feeds!
RSS Tricks: How To Provide an RSS Feed for a Post’s Comments
This RSS trick isn’t much of a trick at all.
In fact it’s a function that’s built right into WordPress, but one that very few know of.
We’ve all come across a post that has a long (and I mean LONG) list of comments associated with it. Keeping track of these comments can be hard for the author, let alone the readers.
The Fix
This is why WordPress offers the following function to provide an RSS feed specifically for the comments of a particular post.
<?php post_comments_feed_link('» Comments RSS Feed'); ?>Now there are 2 ways that you can implement this:
function my_wp_list_comments_args( $args ) { post_comments_feed_link( '» Comments RSS Feed' ); // Don't forget to return the original arguments return $args; } add_filter( 'wp_list_comments_args', 'my_wp_list_comments_args' );How It Works
Calling this line of code will simply call the post_comments_feed_link() function that provides an RSS feed for the comments of a specific post, making it easier for your readers to keep track of those many, many comments.
Source: WP Recipes
Article by
Mark Zahra
Article by
Mark Zahra
Related Articles
How to Create a Google Alerts RSS Feed and Add It to WordPress
Turn a Google Alert into an RSS feed, check that it works, filter noisy results, and publish a clean list of linked headlines on your WordPress site.
How to Merge Multiple RSS Feeds into One in WordPress
Add each feed as a source, group the sources in a folder, and publish one combined stream on any page of your site. A full walkthrough with three real feeds and screenshots, plus when an online combiner is the better pick.
Reddit RSS Feed: The Complete URL Reference and WordPress Workflow (2026)
Reddit’s public .rss endpoints survived the 2023 API changes that broke half the Reddit ecosystem. Every URL pattern that still works in 2026, plus how to import Reddit into WordPress.