Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress 如何使用wp_link_pages()仅显示下一个分页后链接_Wordpress_Wordpress Theming - Fatal编程技术网

Wordpress 如何使用wp_link_pages()仅显示下一个分页后链接

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' => '

我正试图在我的wordpress网站上只返回下一篇文章的链接。 这是我的实现

<?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&amp;page=2">next</a>
</div>
<div class="page_links">
   <a href="http://localhost/circorunning/?p=542"></a> 
   <a href="http://localhost/circorunning/?p=542&amp;page=3">next</a>
</div>
<div class="page_links"> 
   <a href="http://localhost/circorunning/?p=542&amp;page=3">next</a>
</div>