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
do_shortcode not working in widget | Event Espresso - Staging Server

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 - Staging Server