wordpresspaginationrss2

Wordpress: Including Pagination info in RSS2 feed?


I am coding a Java servlet that reads in a wordpress rss2 feed. What are the approaches I need to look at implementing pagination? not using wordpress themes here so, the pagination plugin wont work (am i wrong with this assumption?)

All i want to implement is read in Rs22 posts and paginate at Java layer.

So is there a way where I can get number of posts and post #s itself in Rss2?

I have a fixed number of posts per page (6)


Solution

  • You can add '?paged=2' to the feed URL to retrieve the second page of posts. The default posts it reads is configured in the Wordpress Dashboard > Settings > Reading > Syndication feeds show the most recent > Set the number

    So your URL might look like: http:/www.domain.com/feed?paged=2

    To get the number of posts and post IDs you could run a query on the database.