Support

Home Forums Event Espresso Premium People addon custom single page

People addon custom single page

Posted: April 23, 2017 at 11:45 am


asteiner

April 23, 2017 at 11:45 am

Hi,

Where I can find People addon single page template?
I couldn’t find it inside “eea-people-addon/public/templates” directory

Thank you.


Tony

  • Support Staff

April 24, 2017 at 6:39 am

Hi there,

A ‘person’ is a custom post of type ‘espresso_people’.

We don’t have a single page template within EE as we use your theme’s single.php template files for the output.

You can create a custom template by copying that single.php and naming the copy single-espresso_people.php within the root directory (preferably of a child theme).


asteiner

April 25, 2017 at 7:16 am

If I use your approach, the_content() of people single page becomes NULL.. Any idea why this is happening? Thanks


Josh

  • Support Staff

April 25, 2017 at 9:33 am

Hi there,

It should only display the description/post content. You can see the conditional here:

https://github.com/eventespresso/eea-people-addon/blob/master/EED_People_Single.module.php#L114

If you’re going to create a “single-espresso_people.php” template in a theme, then it’s assumed you’ll be injecting the content that you want to display in the order you want displayed. You can copy over the contents of the people add-on’s /public/templates/content-espresso_people-details.php template into your custom template.


asteiner

April 25, 2017 at 1:04 pm

Thank you!

The support post ‘People addon custom single page’ 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