Wordpress里面的the_date()同一天只显示一次
Wordpress里面的the_date()方法如果是同一天的博客,只显示一次日期。如果在一页中,同一天的博客的时间都想显示,需要使用get_the_date()。
如下图
还以为是bug,找了好久原因,原来官网上有说明。
可以查看the_date()方法的说明http://codex.wordpress.org/Template_Tags/the_date
Wordpress里面的the_date()方法如果是同一天的博客,只显示一次日期。如果在一页中,同一天的博客的时间都想显示,需要使用get_the_date()。
如下图
还以为是bug,找了好久原因,原来官网上有说明。
可以查看the_date()方法的说明http://codex.wordpress.org/Template_Tags/the_date