WordPress.org

Ready to get started?Download WordPress

Forums

Infinite-Scroll
Infinite-Scroll both for post and sidebar (5 posts)

  1. Erik
    Member
    Posted 1 year ago #

    Is it possible to make the Infinite-Scroll to also load more post for the sidebar?

    Best regards,
    Erik

    http://wordpress.org/extend/plugins/infinite-scroll/

  2. egpc
    Member
    Posted 1 year ago #

    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.

    http://homologDOTmicrowaveDOTcomDOTbr/noo/

  3. egpc
    Member
    Posted 1 year ago #

    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 );

  4. Erik
    Member
    Posted 1 year ago #

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

  5. egpc
    Member
    Posted 1 year ago #

    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 freelancer.com if you need help. Cheers

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic