Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

By default, everytime the infinite scroll loads some more posts, it loads 7 posts. Is there a way to load more posts than just 7 each time?

share|improve this question
add comment

2 Answers

The solution was to make a custom query with a posts_per_page argument to the desired number of posts.

share|improve this answer
1  
You don't use a custom query for that, you can just add the posts_per_page argument to the add_theme_support call. Docs here: jetpack.me/support/infinite-scroll –  Otto Jul 10 '13 at 10:43
    
Wow, I read this doc about 5 times, and I never saw that. #Blind Thank you! –  Maxwell Jul 11 '13 at 0:37
add comment

I presume your blog is set to show at most 7 posts per page. Try going to Settings>Reading and adjust the number for posts per page, which is labeled: "Blog pages show at most"

share|improve this answer
    
No the inifinite loader does not load the posts according to the value that was set in Settings->Reading, unless it is set to "click", wich is not my case :/ –  Maxwell Jul 10 '13 at 0:49
    
Really? I was under the impression that Infinite Scroll basically works by finding the "next" link, visiting that page and scraping the posts there. If so, this would always respect the posts per page parameter since it isn't querying the DB via ajax, it is simply looking at what the next page would've been. But maybe something else is happening in Jetpack that I'm not aware of. –  helgatheviking Jul 10 '13 at 2:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.