[Plugin: WP-Paginate] Wrong pagecount (v1.2.1)
-
I ran into the following:
There are 113 posts found and 8 posts per page. According WP-paginate this translates to 15 pages, which is wrong. 113/8=14,125. But due to
ceilbeing used instead offloorthe extra 15th page is generated falsely.Line 118:
$pages = intval(ceil($wp_query->found_posts / $posts_per_page));should be
$pages = intval(floor($wp_query->found_posts / $posts_per_page));
The topic ‘[Plugin: WP-Paginate] Wrong pagecount (v1.2.1)’ is closed to new replies.