Pagination don’t list all entries on Index.php
Thank you both. Meanwhile I got it to work perfect. The way was done with pre_get_posts. My solution now is the function: function numberposts_for_index( $query ) { if( $query->is_main_query() && ! is_admin() && $query->is_home() ) { $query->set( ‘posts_per_page’, ‘4’ ); $query->set(‘post_status’,’future,publish’); }} add_action( ‘pre_get_posts’, ‘numberposts_for_index’ );“` and my code in the index.php now: “`<?php if(have_posts()) … Read more