A-A+
wordpress文章页模板用到的一些函数
wordpress 主题中 single.php 文件相信大家已经很熟悉了,single.php 是 wordpress 的文章内容页面,在制作模板时,经常需要调用一些常用的文章属性,比如常见的文章发布日期,日志内容等,下面整理了一些常见的函数,方便使用时调用。
发布日期:<?php the_time("Y-m-d") ?>
日志链接:<?php the_permalink(); ?>
日志标题:<?php the_title(); ?>
日志内容:<?php the_content(); ?>
上一篇和下一篇:next_post_link和previous_post_link