Home › Forums › Pro Version › Some Posts not displaying date
- This topic has 4 replies, 2 voices, and was last updated 4 years, 7 months ago by
Masonry Guy.
- AuthorPosts
snikay
ParticipantHi,
i just addet
<?php the_date(); ?>
to my custom layout. Some posts do not display the date. Thats strange to me.. Do you have an idea if it’s caused by the grid?Thanks
Masonry Guy
KeymasterHi Snikay,
I don’t think this is our grid issue. May be it is due to some other plugin ?
or can you try keeping date format like this way
<?php the_date('Y-m-d') ?>
Thanks
snikay
ParticipantLooks the same every time. Tried to deactivate all plugins, used
<?php the_date('Y-m-d') ?>
. It stays like that. Also the problem appears on new created posts. Not on all of them though.. Some days ago the date was missing on one post again.
Now i am using<?php wp_days_ago_v3 ($stopUsingAjaxAfter, $showDateAfter, $showDateFormat, $showYesterday) ?>
because using WP-days-ago. now i have the date on all posts.Thomas Prinzivalli
GuestHi,
I had the same problem using
<?php the_date(); ?>
but everything works fine using `<?php echo get_the_date(); ?>
Just make the switch and you’re done.Best regards
Masonry Guy
KeymasterHi Thomas,
Thank you so much for sharing the solution.
<?php the_date('Y-m-d') ?>
only show date once for the entire loop.
Forget about this last time. Sorry about it.
Thanks
- AuthorPosts