Pagination problem
-
First of all I apologize if this is not the correct place to post this question.
I got a site with some funky reacting pagination. I use the pagination like so :
<?php $big = 999999999; // need an unlikely integer $totaal = wp_count_posts(); $pagination = paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => $paged, 'total' => $wp_query->max_num_pages, 'type'=> 'aray', ) ); print_r($pagination); wp_reset_postdata(); ?>
This gives me 286 pages, but with 6 item on each page and 879 posts the number ofpages is incorrect. If i leave this on and go to page 7, nothing is displayed. Only the pages up til 6 work as they should. If I switch $wp_query with $home_query ( $home_query = new WP_Query( $args ) ) in ‘total’, then I only get 6 pages.
So somewhere ( probably in a bit of code that I didn’t post ) I tell wordpress to only add functionality to 6 pages or something like that. Does anyone know how to fix this or in what section of all my code the problem could be ? The link to the website is
Thank you in advance.
- The topic ‘Pagination problem’ is closed to new replies.