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.

I've added infinite scroll support of the Jetpack plugin to my own theme with:

add_theme_support( 'infinite-scroll', array(
    'container'  => 'content',
    'footer' => false,
    'render' => 'vividflow_infscroll_render',
    'wrapper' => false,
    'posts_per_page' => 12
) );

The vividflow_infscroll_render just loads The Loop.

However, I'm experiencing some trouble with the infinite scroll: new posts are loaded multiple times, so that I get double posts on the archive page. My archive page looks like this:

enter image description here

I think new posts are loaded several times because I have several posts on the bottom line: 3. When I place all the post summaries beneath each other, there is no problem.

How can I resolve this issue?

share|improve this question
    
n/p. Figured it out, improved the question and now let's clean up the comments. –  kaiser Feb 25 '13 at 21:29
    
Thanks for improving! –  Camil Staps Feb 26 '13 at 7:03
add comment

1 Answer

up vote 0 down vote accepted

The problem indeed was that there were several posts on the bottom. Adding this to the end of the loop helped:

<br style="clear:both;"/>

I think this is a bug in the Jetpack plugin, but it is easily resolved by adding this line break.

share|improve this answer
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.