shortcode

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

    Bonjour je reviens vers vous car il semblerais que le code que vous m’avez donné pour régler mon problème d’affichage ne fonctionne plus.

    le code :
    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 );

    Savez-vous pourquoi?
    merci à vous 🙂

    #1311233
    Geoff B.
    Member

    Bonsoir Brigitte,

    Merci de nous écrire à nouveau.

    Vous serait-il possible de nous indiquer si vous avez effectué une mise à jour depuis ce temps ? (WP, nos plugins, Motopress) ?

    Par ailleurs, vous serait-il possible de me faire parvenir une copie de votre Thème / Thème enfant via un fichier .zip (lien Dropbox ou Google Drive) – via une réponse privée.

    Finalement, si c’est possible, je vous recommanderais chaudement de mettre à niveau votre version de PHP à 5.4+ . Les versions de PHP plus anciennes peuvent causer de nombreux soucis avec les dernières versions de WordPress et de certains plugins.

    Salutations,
    Geoff B.

    #1323958
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘shortcode’ is closed to new replies.