Count Pagination Fix for MySQL

Count Pagination Fix for MySQL

Details
View on WordPress

As per MySQL documentation the FOUND_ROWS function in conjunction with the SQL_CALC_FOUND_ROWS function are deprecated as of MySQL version 8.0.17. This causes the pagination in WordPress to be broken, both in the front-end as well as in the back-end, resulting in just showing page 1 only.

This plugin solves the issue WordPress is facing when run under newer versions of MySQL database. By hooking into the query that is used to calculate the number of found posts, we return the right amount of posts found so the pagination can be built up correctly again.

Details

Plugin code:
count-pagination-fix
Plugin version:
1.1.5
Author:
Outdated:
No
WP version:
6.0 or higher
PHP version:
7.0 or higher
Test up to WP version:
6.8.3
Total installations:
10
Last updated:
2025-10-21
Rating:
Times rated:
0
count
found_rows
mysql
pagination
sql_calc_found_rows