0

I am using The Events Calendar (https://theeventscalendar.com/) I am running a custom WordPress loop, and looking to display the published date for each event. Inside the loop, I am using the_date();. However, this is displaying the event start date, not the published date. I've searched and searched and cannot find how to display the published date. Please help!

2
  • You will need to ask the plugin developers for support. Third party plugins are off topic here. Aug 24, 2022 at 18:07
  • Sorry. I did ask the plugin developers, but no response.
    – McFarnell
    Aug 25, 2022 at 20:42

1 Answer 1

0

Support answered and said they didn't know how to get the published date, but they would ask their team. For anyone else looking for this answer, I finally found that I can use this to get this published date:

$date = mysql2date('F d, Y', get_post_time('Y-m-d H:i:s', true), false);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.