This is the question in my mind from long time that why feed is not showing all the posts when I open atom.xml. It always get me the top 25 posts in the feed. So how to get all the posts?
- We need to use certain querystring parameters to solve the issue to get all the posts.
- start-index : Which tells to the blogger feed generator that starts from this post.
- max-results : Which tells to the blogger feed generator that the number of maximum results count from the start index.
- redirect : Which is not actually needed. If you enabled post feed redirection then only we need this. But, better to keep this always in the feed url. You can find the more information about it here.
How to use:
After the atom.xml feed url, append the below querystrng url.
For testing you can browse my feed http://praveenbattula.blogspot.com/atom.xml?redirect=false&start-index=1&max-results=50
Which will burn you the top 50 posts in the feed. Actually we get top 25 only by default, but from the solution I told you, which will return how many posts you want.
For getting top 100 results use this querystring url
For getting the results between 50 to 100, use this
You can give any value to the parameters start-index and max-results to get that many results…