Support

Home Forums Event Espresso Premium EE4 Event page only loads Featured Image. Does not load tickets, venue, etc

EE4 Event page only loads Featured Image. Does not load tickets, venue, etc

Posted: January 22, 2016 at 9:51 am


Jimmyadkins

January 22, 2016 at 9:51 am

Event shows up on the calendar fine. When I click event, the event page loads, but only displays the featured image I set for that event.


Lorenzo Orlando Caum

  • Support Staff

January 22, 2016 at 10:19 am

Hi Jimmy,

Could you share a link to the event page please so we can share feedback?

Thanks


Lorenzo


Jimmyadkins

January 22, 2016 at 10:21 am

Yes sir, http://redwhiteandbrush.com/events/the-blue-door-painting-on-the-patio/


Josh

  • Support Staff

January 22, 2016 at 11:33 am

Hi Jimmy,

This looks like it may be due to the way the WordPress theme is coded. Everything is displayed on the event archives.

Can you copy your active WordPress theme’s single.php template and copy it into a pastebin or gist, then post a link here so we can investigate further?


Jimmyadkins

January 22, 2016 at 11:41 am

Yes sir, http://pastebin.com/d14gsQ0D


Josh

  • Support Staff

January 22, 2016 at 11:58 am

Ouch! Yeah the theme is only going to display post content from WP posts and portfolio posts with the way it’s coded there.

You can change the line that says:
if(is_singular('post')) {

and change it to:

if ( is_singular( array( 'post', 'espresso_events' ) ) ) {

Then it will display the content on a single event post.

Recommended: You can copy your modified single.php template over to an active WordPress child to prevent losing your changes on a theme update.


Jimmyadkins

January 22, 2016 at 12:05 pm

Thank you. This worked, somewhat. It’s displaying all the data I wanted, but it’s now displaying the featured image 3 times. One of them looks like an upcoming event listing?
http://redwhiteandbrush.com/events/the-blue-door-painting-on-the-patio/


Jimmyadkins

January 22, 2016 at 12:07 pm

There is also a bit of code at the bottom

UpcomingThe Blue Door – Painting on the Patio” id=”like-182″ class=”like-count-sec”>0


Josh

  • Support Staff

January 22, 2016 at 12:22 pm

Hi Jimmy,

If your WP theme calls the feature image more than once for a post, your event pages will call the featured image more than once as well. From the looks of things, the 3rd image is within the post content. So if you set a featured image and set the image to display within the event description/post content, it will display multiple times.

The broken looking code at the bottom of the page is caused by your theme, and can be fixed by swapping in the_title_attribute() wherever the theme incorrectly uses the_title() where it should have the_title_attribute. If you need help with finding where to make the, you can post a pastebin of the single-blog.php template and we can take a look.

The support post ‘EE4 Event page only loads Featured Image. Does not load tickets, venue, etc’ 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