0

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?

1
  • n/p. Figured it out, improved the question and now let's clean up the comments.
    – kaiser
    Feb 25, 2013 at 21:29

1 Answer 1

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy