Support

Home Forums Event Espresso Premium People Addon – show event date

People Addon – show event date

Posted: November 7, 2018 at 4:45 pm

Viewing 2 reply threads


Porter

November 7, 2018 at 4:45 pm

Hi there,

I would like to edit content-espresso_people-details.php to display the event start date next to each course a person is associated with.

Can you please point me in the right direction?

Thanks


Tony

  • Support Staff

November 8, 2018 at 4:02 am

Hi there,

Assuming your event has only a single DateTime and or you only want to display the ‘next’ start date, you can use something like this:

$datetimes = EEM_Datetime::instance()->get_datetimes_for_event_ordered_by_start_time( $evt->ID(), $include_expired = false, $include_deleted = false, $datetime_limit = 1 );

Use that within the foreach loop for the events as $evt will then be the event object

$datetimes will then be an array containing a single EE_Datetime

If you using something like Kint Debugger you can wrap that in d() to see all of the available methods.


Porter

November 12, 2018 at 4:47 am

Thank you

Viewing 2 reply threads

The support post ‘People Addon – show event date’ 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