Support

Home Forums Event Espresso Premium Removing the year from the date column

Removing the year from the date column

Posted: May 11, 2016 at 2:39 pm


Oguzhan Altun

May 11, 2016 at 2:39 pm

Hello,

Is there a way to remove the year from the date column so that I can just show the day and month like 23 April in the Table View Format?

Here is the link:
https://www.genevaphotoclub.com/dates-prices/

And here is the table view template:
http://pastebin.com/KM3LWkwh

Thanks,


Josh

  • Support Staff

May 11, 2016 at 6:18 pm

Hi Oguzhan,

It turns out the date format that’s used there is pull from your WordPress Settings > General date format setting. If you want to change this for the table view only, you change the line of template code that has this:

$date_format = get_option( 'date_format' );

to something like this:

$date_format = 'F j';


Oguzhan Altun

May 12, 2016 at 1:16 am

Perfect, this worked. Thank you!

The support post ‘Removing the year from the date column’ 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