• Resolved tokkilee

    (@tokkilee)


    On my search page, the results are repeating the first time you click “load more”, even though I’m using both the offset and the query parameters in the shortcode. After that, it seems to paginate correctly. The button is working fine everywhere else. Here’s the URL and the search term you can see it in: http://development-client-server.com/ds/?s=autism

    and here’s the shortcode I’m using:

    [ajax_load_more post_type="post" search="'.$s.'" offset="12" posts_per_page="12" pause="true" scroll="false" button_label="Load More Stories" container_type="div"]

    Thanks for any help!!

    https://wordpress.org/plugins/ajax-load-more/

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter tokkilee

    (@tokkilee)

    So, just to be clear, you’re saying the AJAX Load More *does not* work with WordPress’s search functionality. I want to be sure before I ask the client to purchase something extra. And if the plugin *doesn’t* work with search at all, then what’s the point of having the search term parameter?

    Plugin Author Darren Cooney

    (@dcooney)

    I’m not saying that. It works fine on search example on my website.

    I’ve explained the issues and offered solutions. Not much more I can do to help you here.

    Thread Starter tokkilee

    (@tokkilee)

    Oh! Ok I finally understand:

    1) So the default WP search loop is ordering by relevancy BUT
    2) the Load more button loop is ordering by desc/date

    If I purchase the preload add-on, will it order the load more button results by relevancy, or will it just change the first results to order by date? Because we have a sort by link to already do that, but they’d like an “order by relevancy” version, which it seems the default load more doesn’t support. I don’t want to have them purchase the preorder add-on if it’s still not going to show by relevancy.

    Plugin Author Darren Cooney

    (@dcooney)

    Preloaded wont help you unless you remove the initial search loop and just use ajax load more for the search results.

    I’m actually not sure WP default search uses relevancy.

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘AJAX Load More Repeating Results on Search’ is closed to new replies.