嘿,我很沮丧,被问了又问,似乎找不到答案。请帮帮我,我会把我的问题清理干净的。我会给能帮忙的人几百只熊:)
我安装了一个博客http://www.myblog.com - it\'s part of a network, I use wordpress multisite
关于我的博客主题,编辑索引。php,我显示表中的记录cars, 每页10行,我编写了一个自定义分页脚本,与我的wordpress分页没有任何关系。
现在我有以下链接:
www.myblog。com/index。php?当前页面=1 www.myblog。com/index。php?当前页=2,依此类推,直到
www.myblog。com/index。php?当前页=6
如何将它们重写为非常友好的链接?
Ideea two: 尝试使用wordpress规则和已编辑的函数。php如此,运气不佳:
add_action( \'init\', \'wpa5413_init\' );
function wpa5413_init() {
add_rewrite_rule(
\'^/\\?currentpage/(\\d*)$\',
\'index.php?currentpage=$matches[1]\',
\'top\' );
}
add_filter(\'query_vars\', \'wpa3537_query_vars\');
function wpa3537_query_vars($query_vars) {
$query_vars[] = \'currentpage\';
return $query_vars;
}
Please help me, honestly, I can even pay, I am soo frustraed... doing this work after my dayjob, it\'s been days of not sleeping, just need to make this happen, pleaseeeeeeeeeeeeeeeee
PS不要否决我的问题,我看到其他人也在为类似的问题争吵