我的一篇文章比較長,分成幾頁來顯示。
效果見:http://www.haoxiaoru.info/archives/317
修改文件
以inove主題為例。
打開:控制板——外觀——編輯——single.php——
在single.php中找到
<?php the_content(); ?>
在后邊添加
<?php wp_link_pages('before=<div id="page-links">&after=</div>&next_or_number=number&pagelink=第 % 頁'); ?>
在文章中需要分頁的地方插入(HTML模式下)
<!--nextpage-->
CSS顯示效果
打開:控制板——外觀——編輯——樣式表 (style.css)——
在style.css中加入下面的代碼:
#page-links {
background:#f4f7fc;
color:#777;
width:400px;
margin:10px 0 5px 30px;
}
#page-links a{
display:block;
width:200px;
padding-left:30px;
list-style:none;
}