Home › Forums › Calendar Products › Events Calendar PRO › Shortcode
- This topic has 11 replies, 2 voices, and was last updated 8 years, 10 months ago by
Brigitte Levastre.
-
AuthorPosts
-
May 24, 2017 at 5:53 am #1288241
Brigitte Levastre
ParticipantHello
I bought the plugin “the events calendar pro” and when I insert the shortcode, it does not show me anything.
Is this normal?
thank youMay 24, 2017 at 6:01 am #1288250Brigitte Levastre
ParticipantThere seems to be a concern for compatibility with Motopress …
May 24, 2017 at 10:21 am #1288437Courtney
MemberHello Brigitte
I’m sorry that is happening to you. Can you tell me which shortcode you used? Preferably, copy/paste it here, and/or include a screenshot of how it is embedded into your site. (Screenshots must be uploaded by visiting our site, not attached to respond-by-email).
Since you are suspecting your theme, have you switched to a default theme, such as Twenty Seventeen https://wordpress.org/themes/twentyseventeen/ to test if it works there?
Did you reach out to your theme developer? They may have some insights why this is happening?
I hope I can help clear this up soon.
Thanks
Courtney 🙂May 28, 2017 at 11:48 pm #1290212Brigitte Levastre
ParticipantHello; Then the concern does not come from the Theme but from Motopress, which is a plugin of setting up elements.
When I insert your shortcode [tribe_events] into the wordpress text included in motopress; it does not appear :/
Still, I tested without using the plugin (without motopress page builder) and works …PS: rectification, it does not seem to work in the classic wordpress text area :/
May 29, 2017 at 6:55 am #1290312Courtney
MemberThanks Brigitte
Can you reach out to MotoPress and see if they have had others with a similar conflict? They may have a solution already for this.
Thanks
Courtney 🙂May 30, 2017 at 8:07 am #1290760Brigitte Levastre
ParticipantJ’ai contacté le support de Motopress ;qui on testait de leur côté et il semblerais que les shortcode ne fonctionne pas :/
j’utilise celui ci : [tribe_events view=”month”]
et celui ci : [tribe_events]mais il n’affiche pas le calendrier une fois sauvegardé
May 31, 2017 at 7:32 am #1291261Brigitte Levastre
ParticipantHere are two screen that will help you
And I can provide you access to the site if you wishMay 31, 2017 at 8:05 am #1291280Brigitte Levastre
ParticipantAnd here’s what it looks like when I do not use Motopress …
May 31, 2017 at 8:07 am #1291285Brigitte Levastre
ParticipantAnd here’s what it looks like when I do not use Motopress …
May 31, 2017 at 8:59 am #1291298Courtney
MemberHello Brigitte
It looks like we’ve seen this with another plugin. It tries to render the shortcode early on in the request, not to display it, but to parse it for various reasons – but the shortcode is built to only render once per request, which meant the second time – when it was being displayed for real, it wouldn’t show.
One option could be to keep Motopress enabled and try some code like this to workaround the situation (it could be added to a custom plugin or add this snippet to either your child theme’s functions.php file or use the My Custom Functions plugin for example):
function unregister_tribe_events_shortcode() { remove_shortcode( 'tribe_events' ); } function reregister_tribe_events_shortcode() { if ( ! class_exists( 'Tribe__Events__Pro__Main' ) ) { return; } $tribe_shortcodes = Tribe__Events__Pro__Main::instance()->shortcodes; add_shortcode( 'tribe_events', array( $tribe_shortcodes, 'tribe_events' ) ); } add_action( 'init', 'unregister_tribe_events_shortcode', 20 ); add_action( 'wp_head', 'reregister_tribe_events_shortcode', 5 );If this does not work, it at least eliminates a number of possible causes.
Can you let me know how it works out?
June 22, 2017 at 9:35 am #1301787Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Shortcode’ is closed to new replies.
