Forums
(@ramonhimera)
16 years, 5 months ago
i think you need to use ceil() instead of floor() so that you are rounding up the number of pages:
$wp_query->max_num_pages = ceil($wp_query->found_posts / $ppp);