Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Featured image stopped working | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Featured image stopped working

Featured image stopped working

Posted: November 13, 2012 at 12:47 pm

Viewing 7 reply threads


Stefan Hansen

November 13, 2012 at 12:47 pm

Hey,

after updating to 3.1.28.3 today my featured images stopped working on my event-list-display.php, which contains this:

This worked fine until I updated, and images are also still showing up in the calendar when enabled. What am i missing?

Thanks!


Stefan Hansen

November 13, 2012 at 12:47 pm

here’s the snippet:
echo $event_meta[‘event_thumbnail_url’];


Josh

November 13, 2012 at 3:20 pm

Hi Stefan,

Did you copy your changes in the event_list_display.php templates into /wp-content/uploads/espresso/templates?

If not, you can reapply the modifications to the template files and then copy event_list.php and event_list_display.php into /wp-content/uploads/espresso/templates so they do not get overwritten on an update.


Stefan Hansen

November 13, 2012 at 5:08 pm

Hi, Josh.

That’s what I did. The developer templates are active it seems. If I replace the feat-image snippet with a random string, it shows up on the page. But with the snippet, it seems as if nothing is being output.

Just tried putting this into event-registration-display.php to see if it shows up there, but no luck there as well.

Any other ideas I could explore?

Thanks for the help,
Stefan


Josh

November 13, 2012 at 5:33 pm

Can you post a gist or a pastebin so I can take a look at the code you were using?


Stefan Hansen

November 13, 2012 at 5:47 pm

Absolutely:

http://pastebin.com/hP9ytt97

Thanks!


Stefan Hansen

November 14, 2012 at 8:13 pm

Josh – anything you could see in that code that looked wrong?

Thanks!


Josh

November 20, 2012 at 11:49 am

Hi Stephan,

That’s the recurring events template. In order to get the featured images to work on these, you’d need to make a few extra modifications:

Step 1 is to add event_meta to the array near the bottom of event_list.php. Example code follows:

$event_data = array(
                                'event_id' => $event_id,
                                'event_page_id' => $event_page_id,
                                'event_name' => $event_name,
                                'event_desc' => $event_desc,
                                'start_date' => $start_date,
                                'end_date' => $end_date,
                                'reg_limit' => $reg_limit,
                                'registration_url' => $registration_url,
                                'overflow_event_id' => $overflow_event_id,
                                'event_meta' => $event_meta

                            );

Step 2 is to replace what you have now for the featured image display in event_list_display.php with the following:

<img src="<?php echo $first_event_instance['event_meta']['event_thumbnail_url']?>" />
Viewing 7 reply threads

The support post ‘Featured image stopped working’ 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 - Staging Server