Support » Plugin: Infinite-Scroll » Infinite-Scroll both for post and sidebar

Viewing 4 replies - 1 through 4 (of 4 total)
  • egpc


    I also need help getting infinite scroll to work on two columns (left and right), wondering if it will work with two different queries? Currently i can get it to work for just one of the columns.




    i got it to work by merging posts, the problem i had was i needed exactly 2 posts from one cat and then 4 from another. Merging posts worked for me.

    $result = new WP_Query();

    // start putting the contents in the new object
    $result->posts = array_merge( $materias->posts, $backstage->posts );

    // here you might wanna apply some sort of sorting on $result->posts

    // we also need to set post count correctly so as to enable the looping
    $result->post_count = count( $result->posts );



    Egpc: Sorry but I am not so good at coding.. can you please show me little more how to do it?

    if you do a single query and use css and php conditions to check each post you can then assign it to either left or right column. If you need it in different queries however, for example for different div selectors, then you need to use something else or do some nasty hacks to the plugin. I have it on different divs and positions, but I had to use some custom coding. The plugin by itself does not support multiple instances. Find me on if you need help. Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Infinite-Scroll both for post and sidebar’ is closed to new replies.