Fix for pagination issues under MySQL v8.0 and later where SQL_CALC_FOUND_ROWS and FOUND_ROWS are no longer supported.
As of April 2026, Count Pagination Fix for MySQL is a WordPress count plugin with 10 active installations and a 0/5 rating0. It has been downloaded 1.4K+ times in total. Requires WordPress 6.0+ and PHP 7.0+. Available on WordPress.org since 2024. Top alternative: Simple Download Monitor.
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.
| WordPress | 6.0+ requiredTested up to 6.8.5 |
| PHP | 7.0+ required |
Release date: 2025-10-21
Confirmed compatibility with WordPress 6.8.3.
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.