I need to show the event date instead of the (default) post date for each post.

How can I do this?

I tried with Event Post plugin, but I can't get the event date and put it overwriting the published post date.

I tried with a custom field too (using Advanced Custom Field plugin), but I have the same problem: I can't replace the post date with the "date picker field".

For me it's important to use the default post format of wp and not a plugin that adds item "Events" in the wp backend menu.

How can I resolve this? IMO the wp developers should include the possibility to change the date status from published to event date.

Many thanks in advance.

  • If you want to use Advanced Custom Fields, this is how to display a date - put this in your single.php / index.php / archive.php template(s) in your theme where you want the date to display: advancedcustomfields.com/resources/date-picker/#template-usage That is how to change the display on the site. In the admin, you'll still have the post date as the day you published the post. – Michelle Nov 23 '16 at 17:22

Ok, great. It is using the posts for concerts, parties...etc.

You need to create a plugin:

Simply, create a folder inside the /wp-content/plugins and name is /my-events-plugin

Create a new PHP file, name it my_events_plugin.php, and use the following template:


There is this tutorial that will get you to adding the custom field and save it:


Hope this gets you going :)

| improve this answer | |
  • Hello, thank you for your help. Yes, I mean events, such as concertes, parties, etc... But I need to use the default posts as events, because my theme get them in the homepage layout. ;) Now, I'm using the No Future Posts plugin, that allows to put a date in the future in a post and to show it. But this isn't the best solution, a better solution is by a custom field, but I don't know how can I change the post date with the event_date on the frontend. – ste_yeu Nov 23 '16 at 12:36
  • Great... I'm happy I understood.... Heheheheh... – TDEgypt Nov 23 '16 at 16:42
  • Ok, will edit my answer above shortly ;-) – TDEgypt Nov 23 '16 at 16:42
  • Answer edited :) – TDEgypt Nov 23 '16 at 17:09
  • Let me know how it went with you, and if I can be of any further help, just reply back :). Cheers – TDEgypt Nov 23 '16 at 22:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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