php Prev Next发布了ultramix

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php Prev Next发布了ultramix相关的知识,希望对你有一定的参考价值。

<div id="nav-below" class="navigation">
	<div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '←', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div>
	<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '→', 'Next post link', 'twentyten' ) . '</span>' ); ?></div>
</div>


<ul>
<?php if (get_adjacent_post(false, '', true)): // if there are older posts ?>
	<li class="prev">Previous post: <?php previous_post_link('%link'); ?></li>
<?php endif; ?>
<?php if (get_adjacent_post(false, '', false)): // if there are newer posts ?>
	<li class="next">Next post: <?php next_post_link('%link'); ?></li>
<?php endif; ?>
</ul>

<?php
$previous_post = get_adjacent_post(false, '', true);
$next_post = get_adjacent_post(false, '', false);
?>
<ul>
<?php if ($previous_post): // if there are older articles ?>
	<li class="prev">Previous post: <a href="<?php echo make_href_root_relative(get_permalink($previous_post)); ?>"><?php echo get_the_title($previous_post); ?></a></li>
<?php endif; ?>
<?php if ($next_post): // if there are newer articles ?>
	<li class="next">Next post: <a href="<?php echo make_href_root_relative(get_permalink($next_post)); ?>"><?php echo get_the_title($next_post); ?></a></li>
<?php endif; ?>
</ul>

以上是关于php Prev Next发布了ultramix的主要内容,如果未能解决你的问题,请参考以下文章

php Canonical,rel next,prevвnews.list

php rel next prev bx paging_params

php 在wordpress函数中添加一个类,用于自定义和创建博客PREV和NEXT链接

使用左右箭头导航到 rel=next 和 rel=prev 页面

MPMoviePlayerController - 检测按下 Next/Prev 按钮

为啥 jCarousel Next/Prev 按钮在添加项目后未启用