Support

Home Forums Event Espresso Premium Show Image In Widget

Show Image In Widget

Posted: January 10, 2013 at 3:54 pm


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

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.

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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Philip 6 years, 10 months ago ago

Topic Tags

Tagged: 

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.