Support

Home Forums Event Espresso Premium People Add On Pages

People Add On Pages

Posted: February 26, 2025 at 12:52 pm

Viewing 4 reply threads


pathwise

February 26, 2025 at 12:52 pm

Hello,

On the /people/firstname-lastname pages…

Is there a way to only show upcoming events the person is assigned to rather than all events?

Thank you,
Anna


Tony

  • Support Staff

February 27, 2025 at 6:13 am

Hi Anna,

Yes, it is possible, but you’ll need a custom query for it as the default functions don’t have a way for you to set it on the query they use.

Are you comfortable with FTP/PHP?


pathwise

February 27, 2025 at 6:46 am

Yes. 🙂

Also, I can always reach out to a more experienced developer on our team if it’s outside of my skillset.

Thank you,
Anna


Tony

  • Support Staff

February 27, 2025 at 7:00 am

Ok, so the template file is in:

\wp-content\plugins\eea-people\public\templates\content-espresso_people-details.php

Copy that to your child theme (root).

On line 14 is this:

$events = EEH_People_View::get_events_for_person();

But that doesn’t have a way for you to set only upcoming events. So you need to copy that function into the template file and update the query params to include something like:

'Event.Datetime.DTT_EVT_start' => [ '>', EEM_Datetime::instance()->current_time_for_query('DTT_EVT_start') ],

Within the where params used.


Tony

  • Support Staff

February 27, 2025 at 7:02 am

This reply has been marked as private.
Viewing 4 reply threads

The support post ‘People Add On Pages’ 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