• Resolved tomo55555

    (@tomo55555)


    Hi,

    We have an issue when the load more button is pressed it fails to load more posts when the result is less than 10 additional posts. The default fetch is ten posts at a time I believe. If the expected result is 34 posts then the first 3 pages will load but the last with only 3 posts won’t show. The Load more button correctly disapears though.

    Have you experienced this before?

    Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Support Karan

    (@kjswp)

    Hi @tomo55555,
    SearchWP Live Ajax plugin does not have built-in functionality for a load more button. It loads the results automatically when a user types a keyword.

    By default, it returns a maximum of 7 posts. You can, however, increase this number by using the following hook:

    function my_searchwp_live_search_posts_per_page() {
    	return 20; // return 20 results
    }
    
    add_filter( 'searchwp_live_search_posts_per_page', 'my_searchwp_live_search_posts_per_page' );
Viewing 1 replies (of 1 total)
  • The topic ‘Ajax Load More Button Issue’ is closed to new replies.