[wp-forums] get_the_time and get_the_date with custom post types in TwentyEleven theme
Francisco de Azevedo
frandeazevedo at gmail.com
Mon Nov 14 13:50:42 UTC 2011
Hello everybody,
I am resending this email because I dont; know if I sent it right the first
time, so my apologies if its duplicated.
I noticed a strange behavior in the Twenty Eleven theme while helping out
in this thread:
http://wordpress.org/support/topic/post-date-and-custom-post-type?replies=3#post-2443523.
The user could not get custom post type dates to show inside the
"entry-meta" div of the TwentyEleven theme, nor in the Graphene theme. I
checked the "twentyeleven_posted_on()" function, and that info is being
retrieved through "get_the_time()" and "get_the_date()" (called from a
printf function). I found another tenth-month old thread where another user
is reporting the same problem:
http://wordpress.org/support/topic/custom-post-types-date-based-archives?replies=1
.
Another thing worthy of mention is that, in the topic in question, the user
was able to successfully display custom post type dates by echoing the
get_the_date tag.
Bottomline, is it normal that the tags in question are not working with
custom post types, or could the problem be related to the printf function?
Francisco (a.k.a. Marventus)
More information about the wp-forums
mailing list