Wordpress 如何使用wp_link_pages()仅显示下一个分页后链接
我正试图在我的wordpress网站上只返回下一篇文章的链接。 这是我的实现Wordpress 如何使用wp_link_pages()仅显示下一个分页后链接,wordpress,wordpress-theming,Wordpress,Wordpress Theming,我正试图在我的wordpress网站上只返回下一篇文章的链接。 这是我的实现 <?php wp_link_pages( array( 'next_or_number' => 'next', 'nextpagelink' => 'next', 'previouspagelink' => false, 'before' => '<div class="page_links">', 'after' => '
<?php
wp_link_pages( array(
'next_or_number' => 'next',
'nextpagelink' => 'next',
'previouspagelink' => false,
'before' => '<div class="page_links">',
'after' => '</div>'
) );
?>
<div class="page_links">
<a href="http://localhost/circorunning/?p=542&page=2">next</a>
</div>
<div class="page_links">
<a href="http://localhost/circorunning/?p=542"></a>
<a href="http://localhost/circorunning/?p=542&page=3">next</a>
</div>
<div class="page_links">
<a href="http://localhost/circorunning/?p=542&page=3">next</a>
</div>