Support

Home Forums Event Espresso Premium Display events by people

Display events by people

Posted: February 4, 2020 at 6:06 am

Viewing 3 reply threads


renefi

February 4, 2020 at 6:06 am

Hi, I want to display all future events, held by certain teachers. Is there a shortcode that creates a list of events, held be one person (people add-on). Also is there a shortcode that creates a list of events, held at a certain venue. Thank you
Rene


Tony

  • Support Staff

February 6, 2020 at 4:26 am

Hi there,

I want to display all future events, held by certain teachers. Is there a shortcode that creates a list of events, held be one person (people add-on)

No, but the ‘people’ page for that persion should include a list of all events that are assigned to:

domain/people/{person-slug}

Is that not what you are looking for?

Also is there a shortcode that creates a list of events, held at a certain venue.

Not currently but you can use a snippet of code to list events on the venue page:

https://gist.github.com/joshfeck/afd53d5a3d2223e9c917f17207c41792

Will that work for you?


renefi

February 7, 2020 at 1:49 pm

Hi, oh that’s too bad.

The people page does include a list. But all the events in future AND past. And that is not really helpful. Can I do anything bout that?

Rene


Tony

  • Support Staff

February 11, 2020 at 6:41 am

Sure, you can replace the template used to output the links and remove the expired events through that, for example:

https://gist.github.com/Pebblo/b5c02263e30ddc4298c1

If you are using a child theme you can place that content-espresso_people-details.php template file within the root directory of your child theme and EE will use it in place of the original. If you are not using a child theme you can create one following the details here:

https://developer.wordpress.org/themes/advanced-topics/child-themes/

Viewing 3 reply threads

The support post ‘Display events by people’ 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