WordPress 可以自由的设置文章发布日期显示的格式:如 the_date
<?php the_date('Y-m-d H:i l'); ?>
前台显示示例:2016-07-30 11:24 星期六
还有一种为 the_time
<?php the_time('Y 年 n 月 j 日'); ?>
前台显示示例:2016 年 7 月 30 日
更多的常用调用先占位,以后再更新吧。。。 😳
WordPress 可以自由的设置文章发布日期显示的格式:如 the_date
<?php the_date('Y-m-d H:i l'); ?>
前台显示示例:2016-07-30 11:24 星期六
还有一种为 the_time
<?php the_time('Y 年 n 月 j 日'); ?>
前台显示示例:2016 年 7 月 30 日
更多的常用调用先占位,以后再更新吧。。。 😳