not displaying all posts, stops after load 25 posts
-
Hello, I have installed and running the plugin in a testing website environment, and it is running well except that seems to have a limit of posts to load, because after 25 posts loaded no more are loaded. There are more than 1000 posts published. But I can’t see how to get the loader show more and more.
If in the queru I put ‘posts_per_page’ = -1, then ajax load more not run and all the post are loaded from the beginning. If I put posts_per_page=6 (for example), then the ajax load more is running, but stops after 25.<?php $paged = ( get_query_var('page') ) ? get_query_var('page') : 1; $args_rest_of_posts = array( 'post__not_in' => $ids_used, 'posts_per_page' => -1, 'paged' => $paged ); $query_posts = new WP_Query( $args_rest_of_posts );
The call to the plugin is:
echo do_shortcode('[ajax_load_more post__not_in="'. $ids_used2 . '"]');
Where $ids_used2 is a string with posts displayed before themain query that we dont’ want to repeat.
Any help would be very appreciated.
- The topic ‘not displaying all posts, stops after load 25 posts’ is closed to new replies.