Home Forums Pre-Releases EE4 On a Single Event Page (registration) the meta fields are wrong

EE4 On a Single Event Page (registration) the meta fields are wrong

Posted: February 27, 2014 at 8:01 am


February 27, 2014 at 8:01 am

wp: 3.8.1; ee4: 4.1.6reg;

on a single event page, the meta fields are only showing the PUBLISHING DATE of the event, NOT the actual date of the event and time of the event, but the date of posting the event. how can this be corrected

I could email a temporary member login info.


  • Support Staff

February 27, 2014 at 8:27 am

Hi there,

Event Espresso doesn’t add the meta fields, your theme adds them and grabs the publish date of the post.

You can swap out the publish date in your theme to show the primary date time for the event if you want (or not show the publish date at all). Either way it will involve changing the theme, which the theme developer/support staff may be able to help you with.

The event date template tag is espresso_event_date() if you go the swap in the event date route.


February 27, 2014 at 8:32 pm

Please, help me with this, as I don’t know which file to edit? the Espresso template file or the theme’s template? it’s very confusing, espresso has so many different templates, i can’t figure out which one is which. I need to edit the Single Event template to show the Event Date, and not the event posting date.
I already emailed you the theme files, so please let me know what do I need to modify. Thank you. Here’s an example of what is not looking right:


  • Support Staff

February 28, 2014 at 4:26 pm

It will involve changing a theme’s template, which the theme developer/support staff may be able to help you with.

We generally do not support theme files that we didn’t make.


March 3, 2014 at 6:24 pm

Josh, I can edit the theme template myself, I just don’t understand which template to edit. How do I make my current theme to use a template for single event post. What should that template be named?

I can’t find clear instructions. Right now the single event custom post type is pulling from Arabic Theme (is it correct?). If it is, why does it not display even date correctly. The event displays all other items correctly, like tickets, registration button, so why does the event DATE tag not displaying correctly. I don’t think it would require a LOT of customization. Please, help.


March 3, 2014 at 7:09 pm

Ok, so I found the template that needs updating and the meta field snippet that puts out the post published date. What would be the code to check if the post of type Event Espresso? I would then replace the post meta with the event meta instead.
something along the lines?
if ( ‘event_espresso’ == get_post_type() ) { … insert event date template tag …}


March 3, 2014 at 7:46 pm

So, I figured it out. YAY! This is code I’ve use on my single post template:

<?php if ( 'espresso_events' == get_post_type() ) : ?>
<?php echo espresso_event_date(); ?>
<?php else: ?>
<?php x_renew_entry_meta(); ?>
<?php endif; ?>


March 4, 2014 at 1:10 am

Well done on resolving it and thanks for sharing the solution.

The support post ‘EE4 On a Single Event Page (registration) the meta fields are wrong’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso