Change Number of Posts From tumblr.com/js
I'开发者_开发知识库m using http://(website).tumblr.com/js to populate the blog on my website, but it only returns the ten most recent posts from my tumblr blog. I want to be able to look up older posts such as posts 11 - 20. Is there a way to do this?
Thanks
You can set the number of posts to return using the num
parameter:
http://WEBSITE.tumblr.com/js?num=40
However, it isn't clear how much the value can be (for the standard tumblr API, you can't get more than 50 posts at a time).
If you want a greater degree of customizability, you will probably need to actually use the API and display the content yourself. The method to get posts is here:
http://www.tumblr.com/docs/en/api/v2#posts
And you want to change the limit
and offset
parameters.
精彩评论