The People add-on currently includes the person’s name along with their excerpt on the single event page. Then there is a link to view their specific profile.
Are you wanting to include a profile picture on the single events page (e.g. example.com/events/my-summer-event/)?
You can display the featured image for each person assigned to an event by 1) You copy the content-espresso_events-people.php template file from the People add-on to your current WordPress theme.
2) You add the following line of code to the loop where you want the image to display: <div><?php echo get_the_post_thumbnail( $person->ID(), 'full' ); ?></div>
Notes: If you want to display another size image, for example the thumbnail size, you change where it says ‘full’ to ‘thumbnail’.
There are two loops in the template, you’ll add the code to the loop that starts with <?php foreach ( $persons as $person ) : ?>
The support post ‘People featured image’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.