长文章分页功能

1.在single页面找到content

添加<?php wp_link_pages(array(‘before’ => ‘<div>分页阅读:’, ‘after’ => ”, ‘next_or_number’ => ‘next’, ‘previouspagelink’ => ‘上一页’, ‘nextpagelink’ => “”)); ?> <?php wp_link_pages(array(‘before’ => ”, ‘after’ => ”, ‘next_or_number’ => ‘number’, ‘link_before’ =>'<span>’, ‘link_after’=>'</span>’)); ?> <?php wp_link_pages(array(‘before’ => ”, ‘after’ => ‘</div>’, ‘next_or_number’ => ‘next’, ‘previouspagelink’ => ”, ‘nextpagelink’ => “下一页”)); ?>

2.在文章页面添加
<p><!–nextpage–></p>

 

0

Related Posts

Comments

发表评论

电子邮件地址不会被公开。 必填项已用*标注