Support

Home Forums Event Espresso Premium People Add-on -display email address and website on people and people-type list

People Add-on -display email address and website on people and people-type list

Posted: January 7, 2016 at 10:57 am


Daniel

January 7, 2016 at 10:57 am

Using People Add-on.

How can I display the email address and person’s website with each person on the people or people-type list?


Josh

  • Support Staff

January 8, 2016 at 1:50 pm

Hi there,

This requires a bit of PHP templating work but is fairly straightforward if you know how to work with the WP post object. This is a good reference for working with any of Event Espresso’s public custom post types:

http://developer.eventespresso.com/docs/ee-model-objects-and-custom-post-types/

For the single “people” post type, you copy the content-espresso_people-details.php template from the People add-on to your active WordPress child theme. You make the copy because that’s where you’ll edit the template.

Then, and the following code is based on the reference above, you can add the following to your template:

You’ll notice in the above that the field that was used for displaying the Website was the short bio or excerpt. Why’s that, you might ask? It’s because there isn’t a website field. That said, you can alternatively use a WordPress custom field if you’re using the short bio for something else.


Daniel

January 8, 2016 at 2:18 pm

Making edits to the content-espresso_people-details.php file and putting it in my child theme doesn’t make any difference on the site.

For example….

I changed
<h3><?php _e(‘Events that this person is involved with:’, ‘event_espresso’); ?></h3>
to
<h3><?php _e(‘Seminars with this instructor:’, ‘event_espresso’); ?></h3>

I removed

<h4 class=”eea-people-addon-people-type-label”><?php echo $type; ?></h4>

But neither of these changes display on the site.


Josh

  • Support Staff

January 8, 2016 at 3:31 pm

Did you copy the template to the root level of the child theme folder?


Daniel

January 9, 2016 at 10:47 am

Yes Josh in the root of the child theme. The parent theme is the Kuorinka theme.


Josh

  • Support Staff

January 11, 2016 at 4:15 pm

You’ll need to make sure the template name is spelled out exactly as

content-espresso_people-details.php

This includes the dashes and underscores.


Daniel

January 12, 2016 at 9:33 am

yes that’s what I have. I just copied it over from the plugin. I wonder if it is something with the way the Kuorinka theme does things. I can’t seem to create custom templates for the EE plugin. I have tried in the child theme folder and in the parent Kuorinka and neither work.


Josh

  • Support Staff

January 12, 2016 at 10:03 am

Another place you can load the template from is /wp-content/uploads/espresso/templates.

Alternatively, you can find out if it’s not working due to the theme by temporarily switching to another theme, then load the template from the other theme.

The way that the template loader in Event Espresso works is it checks the theme folder first, then the /wp-content/uploads/espresso/templates second, then if not found, it loads up the default template from within the plugin.

The support post ‘People Add-on -display email address and website on people and people-type list’ 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