简体   繁体   中英

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)

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM