• Resolved Supra

    (@supra21)


    Hi,

    The generated shortcode, loads the infinite scroll properly when insert it in post body.
    [ajax_load_more container_type="div" post_type="post" no_results_text="No Posts found"]

    But, when I insert it after comments box via AdInsert Plugin, it is not showing any posts. It does execute, i.e, in inspect view following is seen:
    <div id="ajax-load-more" class="ajax-load-more-wrap default" data-alm-id="" data-canonical-url="" data-slug="how-to-solo-travel-on-a-budget" data-post-id="2654" data-localized="ajax_load_more_vars"><div aria-live="polite" aria-atomic="true" class="alm-listing alm-ajax" data-container-type="div" data-loading-style="default" data-repeater="default" data-post-type="post" data-order="DESC" data-orderby="date" data-offset="0" data-posts-per-page="5" data-scroll="true" data-scroll-distance="100" data-max-pages="0" data-pause-override="false" data-pause="false" data-button-label="Load More"></div><div class="alm-btn-wrap" style="visibility: hidden;"><button class="alm-load-more-btn more " rel="next" type="button">Load More</button></div><div class="alm-no-results" style="display: none;">No Posts found</div></div>

    I do not want to edit template file, is there any other way I can make this work?

    • This topic was modified 2 years, 3 months ago by Supra.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @supra21 could you possibly share a link? It should work with AdInserter.

    Thread Starter Supra

    (@supra21)

    Hi @dcooney,
    Thanks for replying.
    Updating that after testing multiple placement options in Adinserter,
    The ones with respect to Content worked. i.e, before content, after content
    Other ones like after comments, after html element… didnt work

    Currently, using after content, and Infinite scroll loads the posts properly.
    Although I would prefer it worked with After comments or After html element #comments.

    Plugin Author Darren Cooney

    (@dcooney)

    Nice, thanks for following up.
    I suggest asking the other plugin for support in this case.

    Have a great day

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to load infinite scroll after comments box in Blog post’ is closed to new replies.