Shortcode

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1288241
    Brigitte Levastre
    Participant

    Hello
    I bought the plugin “the events calendar pro” and when I insert the shortcode, it does not show me anything.
    Is this normal?
    thank you

    http://www.baiedesomme3vallees.fr/page-travaux/

    #1288250
    Brigitte Levastre
    Participant

    There seems to be a concern for compatibility with Motopress …

    #1288437
    Courtney
    Member

    Hello 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 🙂

    #1290212
    Brigitte Levastre
    Participant

    Hello; 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 :/

    #1290312
    Courtney
    Member

    Thanks 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 🙂

    #1290760
    Brigitte Levastre
    Participant

    J’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é

    #1291261
    Brigitte Levastre
    Participant

    Here are two screen that will help you
    And I can provide you access to the site if you wish

    #1291280
    Brigitte Levastre
    Participant

    And here’s what it looks like when I do not use Motopress …

    #1291285
    Brigitte Levastre
    Participant

    And here’s what it looks like when I do not use Motopress …

    #1291298
    Courtney
    Member

    Hello 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?

    #1301787
    Support Droid
    Keymaster

    Hey 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

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Shortcode’ is closed to new replies.