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, 4 months ago by mcote.
This topic was modified 12 years, 4 months ago by mcote.
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.
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
Open Event
This reply was modified 12 years, 4 months ago by mcote.
This reply was modified 12 years, 4 months ago by mcote.
This reply was modified 12 years, 4 months ago by mcote.
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.