最近帮朋友做了个网站使用程序为 wordpress 程序,其中文章输出想显示发布时
间,可是找了很多关于这方面教程,没得到我想要的效果,如下所示:
本文来自旭日站长网 ( www.webmaster5u.com ),更多详情请参考 http://w
ww.webmaster5u.com/show.asp?id=2597
WordPress 里调用时间的函数是 the_time() ,例如要显示上述效果, 只需要
把下面标签复制到想要显示的位置即可:
<?
php the_date('Y/m/d'); ?><?php comment_time('H:i:s');?><?php
the_time(get_option( ’date_format ’ )) ?>