This can be done by adjusting the some templates files for Event Espresso 3. Here the steps to do so:
-
Login to your WordPress site with your preferred SFTP or FTP client. FileZilla and Cyberduck are free options. Try Transmit for Mac
-
Browse to this location: /wp-content/plugins/event-espresso/templates
-
Locate the following files and download a copy of them to your local computer:
event_list_display.php
event_list.php
AND
registration_page_display.php
registration_page.php
-
Using your preferred FTP or SFTP client, browse to this location: /wp-content/uploads/espresso/templates
-
Upload the four files that you recently downloaded to the location above
-
Open the event_list_display.php file for editing and go to line 43. You’ll see some coding like this:
<h3 id="event_title-<?php echo $event_id ?>" class="event_title ui-widget-header ui-corner-top"><a title="<?php echo stripslashes_deep($event_name) ?>" class="a_event_title" id="a_event_title-<?php echo $event_id ?>" href="<?php echo $registration_url; ?>"><?php echo stripslashes_deep($event_name) ?></a>
- Replace the coding with this and save changes:
<h3 id="event_title-<?php echo $event_id ?>" class="event_title ui-widget-header ui-corner-top"><a title="<?php echo stripslashes_deep($event_name) ?>" class="a_event_title" id="a_event_title-<?php echo $event_id ?>" href="<?php echo $registration_url; ?>"><?php echo stripslashes_deep($event_name) ?> - <?php echo event_date_display($start_date, get_option('date_format')) ?></a>
- Open the registration_page_display.php file for editing and go to line 12. You’ll see some coding like this:
<h3 class="event_title ui-widget-header ui-corner-top" id="event_title-<?php echo $event_id; ?>">
<?php echo $event_name ?> - <?php echo event_date_display($start_date, get_option('date_format')) ?> <?php echo $is_active['status'] == 'EXPIRED' ? ' - <span class="expired_event">Event Expired</span>' : ''; ?> <?php echo $is_active['status'] == 'PENDING' ? ' - <span class="expired_event">Event is Pending</span>' : ''; ?> <?php echo $is_active['status'] == 'DRAFT' ? ' - <span class="expired_event">Event is a Draft</span>' : ''; ?>
</h3>
- Replace the coding with this and save changes:
<h3 class="event_title ui-widget-header ui-corner-top" id="event_title-<?php echo $event_id; ?>">
<?php echo $event_name ?> - <?php echo event_date_display($start_date, get_option('date_format')) ?> <?php echo $is_active['status'] == 'EXPIRED' ? ' - <span class="expired_event">Event Expired</span>' : ''; ?> <?php echo $is_active['status'] == 'PENDING' ? ' - <span class="expired_event">Event is Pending</span>' : ''; ?> <?php echo $is_active['status'] == 'DRAFT' ? ' - <span class="expired_event">Event is a Draft</span>' : ''; ?>
</h3>
Be sure to the save changes to the files that were edited above. You can then go to your event list page and a single event page to view your edits on your site.
References:
https://eventespresso.com/topic/add-event-date-to-appear-with-event-title-on-event-registration-page-event-page/
http://eventespresso.com/topic/adding-a-date-to-the-title-of-an-event_list-page