area data-settings="dblclick" readonly ><!–nextpage–>area>1<!–nextpage–>
使用方法
非常实用的wordpress程序自带的文章内容分页功能;
一定要在wordpress后台文本模式下添加;穿插在文章中间,
主题添加方法
在主题php代码中的主内容页面循环下添加如下代码。然后通过style.css添加下面的样式表。
即可实现功能完善的文章页翻页功能;
area data-settings="dblclick" readonly ><?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' => "下一页")); ?> area>1234567891011<?php wp_l
ink_pages(array('before' => '<div >分页阅读:', 'after' => '','next_or_number' => 'next', 'previouspagel
ink' => '上一页', 'nextpagel
ink' => "")); ?><?php wp_l
ink_pages(array('before' => '', 'after' => '', 'next_or_number' => 'number','l
ink_before' =>'<span>', 'l
ink_after'=>'</span>')); ?><?php wp_l
ink_pages(array('before' => '', 'after' => '</div>','next_or_number' => 'next', 'previouspagel
ink' => '', 'nextpagel
ink' => "下一页")); ?>
CSS样式表:
area data-settings="dblclick" readonly >.fenye{text-align:center;margin:0px auto 10px;} .fenye span{background-color:#C73503;color:#fff;font-weight: bold;margin:0px 1px;padding:3px 6px;text-decoration:none;border:1px solid #D2D2D2;} .fenye a{text-decoration:none;} .fenye a span{background-color:#F6F6E8;font-weight: normal;color: #000;text-decoration: none;} .fenye a:hover span{background-color:#c73503;color: #fff;} area>12345678910111213.fenye{text-align:center;margin:0px auto 10px;}.fenye span{background-color:#C73503;color:#fff;font-weight: bold;margin:0px 1px;padding:3px 6px;text-decoration:none;border:1px solid #D2D2D2;}.fenye a{text-decoration:none;}.fenye a span{background-color:#F6F6E8;font-weight: normal;color: #000;text-decoration: none;}.fenye a:hover span{background-color:#c73503;color: #fff;}