Support

Home Forums Event Espresso Premium Change the date display on the event listings (but keep default on other pages)

Change the date display on the event listings (but keep default on other pages)

Posted: May 16, 2013 at 10:49 am


inspectahdeck

May 16, 2013 at 10:49 am

Hi there, I would like to change the date here from

14th September 2013 (which is my wordpress default under general settings) to 14th Sep 2013 (3 characters) as the way the site is designed, means I can only have limited characters for the date.

I need to keep the default for all other pages, invoices etc.

How do I change that?


Dean

May 17, 2013 at 4:58 am

Hi,

Well the plugin uses the WordPress dates by defualt so you would need to edit the appropriate template file and change the date formatting there.

So for example in the registration_page_display.php there is a section that says

<?php echo event_date_display($start_date, get_option('date_format')); ?>

if you changed this to

<?php echo event_date_display($start_date, 'Y-m-d'); ?>

the date would show as 2013-05-17.

More information on date formats can be found here http://php.net/manual/en/function.date.php

The support post ‘Change the date display on the event listings (but keep default on other pages)’ 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