about load more ajax
I made some simple changes to your ajax function call and your ajax-js call.I hope this helps out ajax function call: $return = array(); $paged = $_POST[‘page’]; ob_start(); $args = array( ‘post_type’ => ‘book’, ‘posts_per_page’ => 3, ‘paged’ => $paged, ); $query = new WP_Query($args); while($query->have_posts() ): $query->the_post(); ?> <div class=”ajax”> <?php the_title(); ?> </div> … Read more