日期:

刚在阿修的1987中看到这篇关于WordPress日期时间函数参数详解,很有用处,摘录如下:

WordPress日期时间函数可分为三类:

1.文章的时间函数:<?php the_time() ?>

2.评论的时间函数:<?php comment_time() ?>

3.评论的日期函数:<?php comment_date() ?>

典型的时间函数实例的代码:<?php the_time('F jS, Y') ?>。此代码中,单引号内的代码即为时间参数。

继续阅读 »