[theme-reviewers] the_time vs the_date

priyanshu mittal priyanshu.mittal at gmail.com
Tue Jul 16 17:37:41 UTC 2013


Okay thanks I dint knew that...


On Tue, Jul 16, 2013 at 11:04 PM, Chip Bennett <chip at chipbennett.net> wrote:

> 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
>>
>>
>
> _______________________________________________
> 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/7f497899/attachment.html>


More information about the theme-reviewers mailing list