Support

Home Forums Event Espresso Premium Unable to Integrate Events People with People Addon

Unable to Integrate Events People with People Addon

Posted: March 15, 2016 at 3:40 am


ardiaful

March 15, 2016 at 3:40 am

Dear EE Support team,

I am trying to get the list of people (speakers) associated to an event on single event page using template ‘single-espresso_events.php’. I am using the ‘ESPRESSO_STAFF’ shortcode, but is not working and people does not appear whatsoever.

You can check it out here:
http://52.50.0.93/ee-event/the-marathon/

Could you please have a look and help me troubleshoot what is wrong with the integration?

Thanks in advance!
Francisco


Tony

  • Support Staff

March 15, 2016 at 6:54 am

Hi Francisco,

The [ESPRESSO_STAFF] shortcode is from EE3 and not available within EE4.

If you are working directly with the EE templates I would recommend you take a look at how the EE4 People Add-on pulls in the information within:

\eea-people-addon\public\templates\content-espresso_events-people.php

Mainly:

EE_Registry::instance()->load_helper( 'People_View' );
$people = EEH_People_View::get_people_for_event();

You can then loop over $people and output the details as needed.

The support post ‘Unable to Integrate Events People with People Addon’ 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