Modern Event Calendar & Global Block Shortcode

I have a situation where I am using a Global Block Shortcode in a Modern Events Calendar event. When I do this it seems to throw a bunch of code into the page/event somehow. My uneducated opinion things it is some tag not closed somewhere.

This issue seems to affect an events landing page that uses a MEC shortcode to load all events, as well as the single event in question. If I remove the Global Block shortcode from the single event then the issue goes away.

Hi @dabigcheeze,

Thanks for reaching out.

I don’t it’s due to unclosed element or code because it’s a JSON data (javascript). When Wordpress generate and excerpt of summary, it strips out HTML code, shortcodes, and similar to generate a plain text. And this happens to remove <script></script>, hence, anything in between that will be retained, and that happens to be the javascript code.

For that, I recommend adding your event excerpt manually.

That will allow Wordpress to pick your manually added excerpt instead of generating one.

Thanks!

That doesn’t resolve anything. I’m not using any event excerpt so that is not the issue at all.

Again, when I add a Global Block Shortcode to the event content section the overall events landing page, and the actual event page itself are all messed up as I showed on my earlier post.

Did you actually create a Global Block and insert a shortcode into an Event?

Hello @dabigcheeze,

When I add the global block shortcode in the event page, it does not create any issues in the single event page.

This, however, may create issues in the events archive and other events shortcodes when you add the event shortcodes into a page which is what you are experiencing now.

Hope this helps.

Well, it would help if you provided a solution to the problem vs just acknowledging that the problem exists. That is the purpose of support isn’t it?

The plugin is included with the theme so the assumption is that these plugins have been vetted for use and that all features of the theme/plugin should be compatible should they not? If not, then isn’t it Theme.Cos responsibility, to provide a solution to the issue?

Hello @dabigcheeze,

Yes I can confirm that the plugin does not support any shortcode added in the event description. The shortcode may display in the single event posts. When you add an event shortcode to a page, the error appears. We cannot provide solution at this moment since we are not the creators of the MEC plugin. What we can do is to inform the creators of the plugin so that they can investigate further and fixed the issue. I’ve submitted this issue to our issue tracker so the developers of the plugin will be made aware of it.

Thank you for your understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.