如何将一些自定义url参数插入分页链接?下面的代码显示如下
page.php?cpage=2
category
有价值的fruit
. 因此,最终的url如下所示。page.php?cpage=2&category=fruits
page.php?cpage=2&category=fruits&color=red&size=small
echo paginate_links( array(
\'base\' => add_query_arg( \'cpage\', \'%#%\' ),
\'format\' => \'\',
\'prev_text\' => __(\'«\'),
\'next_text\' => __(\'»\'),
\'total\' => ceil($total / $items_per_page),
\'current\' => $page
));
提前感谢