Support » Plugin: WordPress Infinite Scroll - Ajax Load More » Repeats Post already displayed

  • Resolved diraph

    (@diraph)


    Thanks for the plugin. great work you’ve done.

    I placed the shortcode on my homepage (index.php). The problem is when I click on ”load more Posts”, it starts by displaying posts already displayed posts before it displays the other posts.
    Also, I used the short-code on my archives pages. If user clicks on ”load more” it doesn’t load pages from the category ID or Tag ID.

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

    (@dcooney)

    Hi @diraph,
    Since it sounds like you are loading posts before ALM, you will need to use the offset parameter to tell ALM to skip a few posts.

    [ajax_load_more offset="6"]

    For category and archives, please see the Code Samples. You have to pass the values to the shortcode.
    https://connekthq.com/plugins/ajax-load-more/docs/code-samples/category-archives/

    Hope that helps!

    diraph

    (@diraph)

    It worked. Thanks

    diraph

    (@diraph)

    But the loaded posts is not showing if it has loaded the page/2 or page/3

    See URL:: allschool.com.ng

    Plugin Author dcooney

    (@dcooney)

    For this you will need to figure out which page you are on and offset accordinaly, or use the SEO addon to generate paging URLs with Ajax.

    Hi there,

    We have used following shortcode;
    [ajax_load_more id=”1968046013″ post_type=”news” repeater=”default” posts_per_page=”10″ transition=”fade” orderby=”menu_order” order=”DESC” button_label=”Show More”]

    But we are facing the duplicate custom post type after loading next page. please see the screenshot https://hmp.me/cnk2

    The issue with orderby=”menu_order” order=”DESC” params

    Please suggest how to resolve it?

    • This reply was modified 4 months, 3 weeks ago by fxvisuals.
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.