Support

Home Forums Event Espresso Premium Adding a day (eg Saturday) to the title of an [EVENT_LIST] page

Adding a day (eg Saturday) to the title of an [EVENT_LIST] page

Posted: October 15, 2014 at 10:47 pm

Viewing 4 reply threads


victorsfood

October 15, 2014 at 10:47 pm

This is similar to a post I made a few weeks back, but is it possible to also show the day of the week in the title of an event?

So it would read – DAY NAME, MONTH, DAY, YEAR, EVENT TITLE

Thank you


Dean

October 16, 2014 at 2:28 am

Hi,

Taking what Tony did for you here (https://eventespresso.com/topic/adding-a-date-to-the-title-of-an-event_list-page/) it is easy to just juggle it about a bit.

" class="a_event_title" id="a_event_title-< ?php echo $event_id ?>" href="< ?php echo $registration_url; ?>">

This has just swapped it so the date appear before the title. Also instead of using date_format, we give it s a specific format, in this case: l, dd mm YY which equals Thursday, 16 10 2014

If you wish to amend the date format to something else, there’s some good examples here:

http://codex.wordpress.org/Formatting_Date_and_Time


victorsfood

October 20, 2014 at 3:51 am

Thanks for helping Dean. I mean technically I think this should be working but it is not spitting out the day of the week:

<?php echo event_date_display($start_date, get_option('l, dd mm YY')) ?> - <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>


Dean

October 20, 2014 at 4:17 am

Ahhh that’s my bad sorry, it should read

echo event_date_display($start_date, 'l, d m Y')

So no get_option and the d my should be singular.


victorsfood

October 23, 2014 at 6:13 am

Thanks Dean, that did the trick.

Viewing 4 reply threads

The support post ‘Adding a day (eg Saturday) to the title of an [EVENT_LIST] page’ 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