Fix for pagination issues under MySQL v8.0 and later where SQL_CALC_FOUND_ROWS and FOUND_ROWS are no longer supported.
Author: | Team iSide (profile at wordpress.org) |
WordPress version required: | 6.0 |
WordPress version tested: | 6.3.4 |
Plugin version: | 1.1 |
Added to WordPress repository: | 13-02-2024 |
Last updated: | 13-02-2024 |
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | |
Total downloads: | 78 |
Click to start download |
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 build up correctly again.
FAQ
ChangeLog