Posted: 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? |
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. |
|
|
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 I removed <h4 class=”eea-people-addon-people-type-label”><?php echo $type; ?></h4> But neither of these changes display on the site. |
Did you copy the template to the root level of the child theme folder? |
|
|
Yes Josh in the root of the child theme. The parent theme is the Kuorinka theme. |
You’ll need to make sure the template name is spelled out exactly as
This includes the dashes and underscores. |
|
|
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. |
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.