有人知道如何定制吗wp_link_pages()
因此<!--nextpage-->
将显示类似"<< previous"
和"next >>"
链接而不是"Pages: 1 2 3 "
?
注:-我使用"<!--nextpage-->"
在我的Wordpress tinymce编辑器中,用于长页面之间的分页符。
有人知道如何定制吗wp_link_pages()
因此<!--nextpage-->
将显示类似"<< previous"
和"next >>"
链接而不是"Pages: 1 2 3 "
?
注:-我使用"<!--nextpage-->"
在我的Wordpress tinymce编辑器中,用于长页面之间的分页符。
您可以使用next_or_number
参数,共wp_link_pages
为了实现这一点。
从…起Codex:
next_or_number
(字符串)指示是否应使用页码。有效值为:数字(默认值)
nextpagelink
和previouspagelink
参数修改这些链接文本。因此,这样做应该可以做到:
<?php
wp_link_pages( array(
\'next_or_number\' => \'next\',
\'nextpagelink\' => \'next >>\',
\'previouspagelink\' => \'<< previous\'
) );
?>
我正在使用Modern Tribe Events Calendar我的问题是分页。这是对WP\\U查询分页的错误方式,还是有其他方法可以对事件日历分页?我找到了一个tutorial 这使用了WPNavi插件,但我想使用核心wordpress函数。<?php $upcoming = new WP_Query(); $upcoming->query( array( \'post_type\'=> \'tribe_events\', \'eve