我认为你没有正确地向paginate_comments_links()
. 该函数基本上是paginate_links()
, 并接受相同的参数数组。
以下是默认设置:
<?php
$args = array(
\'base\' => \'%_%\',
\'format\' => \'?page=%#%\',
\'total\' => 1,
\'current\' => 0,
\'show_all\' => False,
\'end_size\' => 1,
\'mid_size\' => 2,
\'prev_next\' => True,
\'prev_text\' => __(\'« Previous\'),
\'next_text\' => __(\'Next »\'),
\'type\' => \'plain\',
\'add_args\' => False,
\'add_fragment\' => \'\'
);
?>
以下是我如何使用它:
<?php paginate_comments_links( array( \'prev_text\' => \'<<\', \'next_text\' => \'>>\' ) ); ?>
那么,您试图传递给函数的参数是什么?