[theme-reviewers] the_time vs the_date

Chip Bennett chip at chipbennett.net
Tue Jul 16 17:34:19 UTC 2013


By design:
http://codex.wordpress.org/Function_Reference/the_date

*SPECIAL NOTE:* When there are multiple posts on a page published under the
SAME DAY, the_date() only displays the date for the first post (that is,
the first instance of the_date()).


Easiest work-around: the_time( get_option( 'date_format' ) )


On Tue, Jul 16, 2013 at 1:30 PM, priyanshu mittal <
priyanshu.mittal at gmail.com> wrote:

> In my themes blog page I had used the_date function to display the post
> published date but in some of the posts the date is not displayed so I
> decided to use the_time instead and now got the desired result can you
> please tell me why the_date function not producing the desired output ?
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130716/271620d0/attachment.html>


More information about the theme-reviewers mailing list