Support

Home Forums Event Espresso Premium do_shortcode not working in widget

do_shortcode not working in widget

Posted: February 8, 2013 at 4:41 am

Viewing 1 reply thread


inlinewo

February 8, 2013 at 4:41 am

I want to show a small version of the featured image, as well as some other additional such as the start and end time in the widget.
&lt;?php echo '<b>Tijd:</b> '.do_shortcode('[EVENT_TIME event_id="'.$event_id.'" type="start_time" format="H:i"]'.' - '); ?&gt;
The above code example works, when I am in an EE page (for instance registration), but on any other page of the site all additional info that was called through do_shortcode has dissapeared.

EE page exampe: http://www.zacht-hart.nl/event-registration/?ee=1
Other page example: http://www.zacht-hart.nl/brabant-breda/

Is there a way to resolve this and to have this working on all site pages?
So far I have found no other way to resize the featured image than by using the do_shortcode option as used below.

&lt;img width=&quot;41&quot; height=&quot;41&quot; src=&quot;" /&gt;


inlinewo

February 8, 2013 at 12:55 pm

Resolved
I replaced all shortcodes by clean php.

Viewing 1 reply thread

The support post ‘do_shortcode not working 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