Posted: June 2, 2015 at 11:55 pm
|
Is there certain dimensions of pictures that will work for people add-on? |
Hi Ari Mannis, Currently the People Add-on does not output the feature images for a person. However the templates are easily editable and will load from wp-content/uploads/espresso/templates/ if you store a modified template there. You can display the feature image using: echo $person->feature_image(); Here is a quick example I made to test this worked: https://gist.github.com/Pebblo/b2913d0b585fe6baccec You can save that to the location posted above and the feature image should display. You’ll very likely need to apply your own custom styling to have this look how you prefer. |
|
|
Hi, Tony thanks for your response I am a bit confused so what is the default way to upload images for the people addon? Also where would I add that snipet of code? Thanks |
|
Nevermind just read where to put the code but what is the default way to get a picture there? Thanks |
Hello again Ari, Please try these steps for setting a featured image. Login to your WP dashboard and go to Event Espresso –> People Admin. Now click on a person’s name and you should see the editor appear. Scroll down and look in the bottom right corner. Then you should see the featured image option: http://cl.ly/image/1v411X2l0p1d You can use that to set a featured image and afterwards be sure to save changes. Thanks — |
|
|
Hey Lorenzo, That is why I am posting I did just that but no image is showing up on the actual website. I however have not tried adding that code above yet. |
Alright, take another look at Tony’s reply on how to add that: https://eventespresso.com/topic/no-picture-is-showing-up/#post-159380 — |
|
|
I am back to square one, what file do I add that code to Tony? I dont see content-espresso_events-people.php in my plugin editor. |
|
Update: I uploaded that file Tony made to wp-content/uploads/espresso/templates. Now it shows the photo under the list of people however when I click on the individual person the photo no longer shows up. |
Hi Ari, Event Espresso uses your theme to output the single person posts, seems your theme does not output feature images for single posts. When viewing a single person (clicking on the person) you view the single.php template of your sites theme, the people Add-on then hooks in and adds the template it uses onto the_content() Can you link me to your ‘person’ page please? |
|
The support post ‘No Picture is showing up’ 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.