
內容簡介
總結:
這個外掛是為了解決在新版 MySQL 資料庫中運行的 WordPress 遇到的問題。該問題導致 WordPress 的分頁在前端和後端都無法正常顯示,只能顯示第 1 頁。
問題與答案組:
問題: 為什麼在新版 MySQL 資料庫下運行的 WordPress 分頁無法正常顯示?
答案: 根據 MySQL 文件,MySQL 8.0.17 版本起,FOUND_ROWS 函數與 SQL_CALC_FOUND_ROWS 函數已被棄用。這導致 WordPress 分頁在前端和後端都無法正常顯示,只顯示第 1 頁。
問題: 如何解決 WordPress 在新版 MySQL 資料庫下的分頁問題?
答案: 這個外掛透過介入計算找到文章數的查詢,返回正確的文章數量,從而解決了在新版 MySQL 資料庫下運行的 WordPress 分頁問題。這樣分頁就能夠正確地建立起來。
外掛標籤
開發者團隊
② 後台搜尋「Count Pagination Fix for MySQL」→ 直接安裝(推薦)
原文外掛簡介
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.
