导读:建站文章建站文章分页一:
分页一:
<!--上下篇开始-->
<div class="shangxia">
<?php
$current_catedede后台模板gory=get_the_category();
$prev_podede商城模板st = get_previous_post($current_category,'');
$next_post = get_next_post($current_category,'');
?>
<?php if (!empty( $prev_post )): ?>
<a href="<?php echo get_permalink( $prev_post->ID ); ?>" title="上一篇:<?php echo $prev_post->post_title; ?>">上一篇:<?php echo $prev_post->post_title; ?></a>
<?php else : ?>
<a title="已经是第一篇了">已经是第一篇了</a>
<?php endif; ?>
<!--上下片分离-->
<?php if (!empty( $next_post )): ?>
<a href="<?php echo get_permalink( $next_post->ID ); ?>" title="下一篇:<?php echo $next_post->post_title; ?>">下一篇:<?php echo $next_post->post_title; ?></a>
<?php else : ?>
<a title="已经是最后一篇了">已经是最后一篇了</a>
<?php endif; ?>
</div>
<!--上下篇结束-->
分页二:
<?php
$categories = get_the_category();
$categoryIDS = array();
foreach ($categories as $category) {
array_push($categoryIDS, $category->term_id);
}
$categoryIDS = implode(",", $categoryIDS);
?>
<div class="post-blockE">
<div class="post-previous">
<?php if (get_previous_post($categoryIDS)) { previous_post_link('<span>上一篇:</span> %link');} else {echo "没有了,已经是最后文章";} dede手机模板?>
</div>
<div class="post-next">
<?php if (get_next_post($categoryIDS)) { next_post_link('<span>下一篇:</span> %link');} else {echo "没有了,已经是最新文章";} ?>
</div>
</div>相关网站开发技术网站如何搭建。
关键词标签: 建站 下一页 上一页
声明: 本文由我的SEOUC技术文章主页发布于:2023-07-23 ,文章wordpress上一页下一页,建站文章主要讲述下一页,上一页,建站网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_34912.html