上一篇和下一篇的連結可方便繼續瀏覽。
但有的theme卻沒有提供。
以FabThemes的Selene Template為例,
在 1 外觀–> 2 主題編輯器–> 3 修改single.php
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
<?php include (TEMPLATEPATH . '/ad1.php'); ?>
<div class="clear"></div>
<?php wp_link_pages(array('before' => '<p><strong>Pages: </strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
修改
<div class="entry">
<?php the_content('Read the rest of this entry »'); ?>
<?php include (TEMPLATEPATH . '/ad1.php'); ?>
<div class="link up"><-- <?php previous_post_link('%link') ?> </div>
<div class="link next"><?php next_post_link('%link') ?> --></div>
<div class="clear"></div>
<?php wp_link_pages(array('before' => '<p><strong>Pages: </strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
並在 style.css 未端加上
.link{
display:block
}
.up{
float:left;
}
.next{
float:right;
}
修改前:

修改後:

亦可使用圖像來代替<– 和–>,
如用繪圖軟件畫了![]()
(名為up.png和next.png),
把他們上載到/wp-content/themes/theme的名稱/images/
而 style.css 則改為
.link{
display:block
}
.up{
float:left;
padding-left:20px;
background:url(images/up.png) no-repeat;
}
.next{
float:right;
padding-right:20px;
background:url(images/next.png) no-repeat;
background-position:right
}


