Support

Home Forums Event Espresso Premium Calendar – Display Datetime Name *without* Event Name

Calendar – Display Datetime Name *without* Event Name

Posted: May 3, 2023 at 3:07 pm

Viewing 1 reply thread


Bauholz

May 3, 2023 at 3:07 pm

Hello – By default the Calendar displays the Event Name + Datetime Title, but I only need it to display the Datetime Titles. Can this be done? I’ve tried to adapt this EE Code Snippet (which does the reverse of what I want), without success:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-calendar/tw_ee_EE_Datetime_In_Calendar__to_array_for_json__title.php

Thanks for any help you can offer.


Tony

  • Support Staff

May 4, 2023 at 7:14 am

Hi there,

What did you try within the above snippet?

If you just want the DateTime name you would swap this:

$event = $datetime_in_calendar->event();
return $event->name();

To be:

$datetime = $datetime_in_calendar->datetime();
return $datetime->name();
Viewing 1 reply thread

The support post ‘Calendar – Display Datetime Name *without* Event Name’ 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