更新时间:2022-12-11 14:18:45
在静态首页(页面模板)上获取当前分页号的正确方法你必须使用'page'查询变量:
The correct way to get the current pagination number on a static front page (Page template) you have to use the 'page' query variable:
$paged = (get_query_var('page')) ?get_query_var('page') : 1;
更多信息在这里:http://codex.wordpress.org/Function_Reference/get_query_var