wp教程:13WordPress文章页模板调用

WordPress文章页模板调用

single.php 文章页模板文件

<?php previous_post_link(‘上一篇:%link’); ?> 获取上一篇日志链接

<?php next_post_link(‘下一篇:%link’); ?> 获取下一篇日志链接

single.php

<?php get_header(); ?>

该文件不需要列表循环

<?php the_post(); ?>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *