• Hello all. I’m working on a 3rd party application that makes use of the RSS/Atom feeds of a certain WordPress blog to aggregate both posts and comments.

    For posts, this is quite simple. I use the following format to get all the posts, as provided by Pagination:

    https://example.com/feed?paged=2

    The only other parameter I know of for this is order=ASC or order=DESC which I only found while pouring through /wp-includes/query.php.

    However! This paged parameter fails to work on comments feeds, which is limiting the functionality of my app.

    https://example.com/post_title/feed?paged=2

    This just returns the same most recent 10 comments regardless of the parameter. I’ve tried variations which all fail to make any change. The only peculiarity is when using the cpage option, but that results in a 404 of all things. Everything also fails on /comments/feed which is the feed for comments of any post.

    So I ask, is there any way to get different pages of a comments feed for a specific post? It works fine for going through the posts of a WordPress site but fails for comments, with the usual parameter having no effect.

    The other problem is that the blog this app is targeted at is not run by me, so I can little say as to the modification or insertion of plugins or custom PHP code to change the behavior.

    Does anyone have a solution to this? Is there a way besides RSS/Atom feeds to aggregate posts and/or comments for a WordPress blog? I’ve looked at XML-RPC but that requires authentication using a username/password which will not work. And JSON-like queries all requires plugins as well.

Viewing 1 replies (of 1 total)
  • Thread Starter jman012

    (@jman012)

    Another option I could always do is download the page’s HTML and scrape that for the comments, but that is inefficient, and possibly a burden on the website. Surely there should be a better way.

    Also, would paged not working for comments feeds be a bug that needs to be fixed in WordPress? If anyone can confirm I or someone could post to a bug tracker.

Viewing 1 replies (of 1 total)
  • The topic ‘RSS feeds for comments and Pagination’ is closed to new replies.