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
Show Image In Widget | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Show Image In Widget

Show Image In Widget

Posted: January 10, 2013 at 3:54 pm

Viewing 2 reply threads


Philip

January 10, 2013 at 3:54 pm

Hello,
I’m trying to show the images in the widget, however using the codes ive been able to find in this forum none of them worked. Always outputs a blank url for the images. any ideas?


Dean

  • Support Staff

January 11, 2013 at 6:34 am

Hi Philip,

The only way to do it currently is to amend the widget.php.

Around line 72 is a foreach command.

Inside that you will need to add some code.

$event_meta = unserialize($event->event_meta);
$event_img_url = $event_meta['event_thumbnail_url'];
//Featured image
echo '';

What this does is grab the featured image url and after taking it out of the serialised array ( a step I think you may have been missing) dumps it into an image tag.

Obviously you will need to modify and style it appropriately


Philip

January 11, 2013 at 7:53 am

Thank you Dean!

That did it, perfect.

Viewing 2 reply threads

The support post ‘Show Image In Widget’ 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