Support » Plugin: WordPress Infinite Scroll - Ajax Load More » Incorrect number of posts being loaded

  • Hi,

    I have successfully integrated the plugin on my Woocommerce-based site, using [ajax_load_more woocommerce="true" repeater="default" posts_per_page="9"] shortcode to present products in various places.

    There seems to be one issue though – in some cases, the ajax call is fetching incorrect number of products per page. In shortcode I have specified 9, but instead it gets 8 or 7 (not every ajax call has this, sometimes it’s once per 5 calls, sometimes more), which results in empty places in some rows of products (on big screen I am showing 3 products in a row).
    I have also noticed that each data portion is appended to existing products via <div class="alm-reveal"><li class="product">...</li><li class="product">...</li>...</div>. Is there a way to append <li class="product">...</li> directly to <ul class="products">...</ul> instead of using this “intermediate” <div>? On mobile this additional div results in empty places too, as it’s supposed to present 2 products in row, so fetching 9 products creates empty place for product per each ajax call.

    Could you please give some hints of how these empty places could be removed? Or alternatively, how to get rid of redundant <div class="alm-reveal"></div>?

    Thanks in advance,

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author dcooney


    @mpilarczyk You can get rid of the alm-reveal by adding transition_container="false" in your shortcode.

    I’m not sure why the posts per per is off, could possibly be an issue in the repeater template.

    Thread Starter mpilarczyk


    Thanks @dcooney, that was what I needed. I missed that option in documentation somehow. I still need to fix the CSS but at least I am step closer.


Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.