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(); ?>
Written by
in
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(); ?>
Leave a Reply