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
Shortcode not working in Widget anymore | Event Espresso - Staging Server

Support

Home Forums Multiple Event Registration Shortcode not working in Widget anymore

Shortcode not working in Widget anymore

Posted: June 28, 2012 at 6:46 pm

Viewing 3 reply threads


mcote

June 28, 2012 at 6:46 pm

Hi, I’ve upgraded EE from 3.1.21 to 3.1.24 and also MER from 1.0.2 to 1.0.3 and now the shortcode I was using in a text widget doesn’t work any more. Here is the code I was using code for each link:

        <a href="http://www.mysite.com/inscriptions/">Inscriptions en ligne disponibles</a>
        <a href="http://www.mysite.com/calendrier/">Voir calendrier des activités</a>
        [ESPRESSO_CART_LINK anchor="Consulter votre panier" direct_to_cart=1 moving_to_cart="Redirection à votre panier..."]
                    <a href="http://www.mysite.com/annulation/">Vider votre panier</a>

Is there another way I should approach this in this version?

  • This topic was modified 12 years, 6 months ago by mcote.
  • This topic was modified 12 years, 6 months ago by mcote.


Josh

June 29, 2012 at 8:03 am

The espresso cart link didn’t change between those versions. In general, shortcodes are not enabled in a standard WordPress text widget unless you modify the widget with a function or another plugin.

I’m wondering if you had a theme function added to the theme that added shortcode support to the widgets, but it got overwritten on a theme update.

See this guide on how to create a custom function plugin that is independent of the theme:
http://wpcandy.com/teaches/how-to-create-a-functionality-plugin

See this guide on how to add shortcode support to a widget:
http://hackadelic.com/the-right-way-to-shortcodize-wordpress-widgets


mcote

July 2, 2012 at 7:11 am

I’ve just noticed what causes this to happen which I never noticed before. The shortcode still works when used in a text widget. The problem is when the event is “CLOSED” the shortcode doesn’t display anything but when the event is “OPEN” the shortcode displays the shortcode link. I was expecting the View Cart link to always be displayed. Is there a way to make this happen systematically?

Closed Event

Closed event:
Open Event

Open event

  • This reply was modified 12 years, 6 months ago by mcote.
  • This reply was modified 12 years, 6 months ago by mcote.
  • This reply was modified 12 years, 6 months ago by mcote.


Josh

July 2, 2012 at 1:20 pm

It’s designed to only allow people to add events that are open to the cart. The event list works much the same way. So, the short answer is no, since the view cart link is tied to the add to cart link.

Viewing 3 reply threads

The support post ‘Shortcode not working in Widget anymore’ 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