$wp_embed->run_shortcode issue

Home Forums Calendar Products Events Calendar PRO $wp_embed->run_shortcode issue

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1133898
    Patrick Sasser
    Participant

    Hello,

    Ok so something very strange is happening on this page….

    http://www.thecrossingchurch.com/stories/janis-shannon/

    As you can see something from The Events Calendar/Events Calendar Pro is getting embedded there and I’m not telling it to be embedded there. Here’s an image of what I’m talking about being embedded… http://puu.sh/pLo2V/3b660f4ffa.png

    Here’s the code that is being executed.


    global $wp_embed;
    echo $wp_embed->run_shortcode('[embed]https://vimeo.com/168256794[/embed]');

    Any thoughts as to why the above code would render the embed from Events Calendar Pro? Or I might be misinterpreting exactly what that is and where its from.

    #1133910
    Patrick Sasser
    Participant

    I was able to fix it by switching my code to this….

    
    $video = wp_oembed_get( 'https://vimeo.com/168256794' );
    echo $video;
    

    and then adding the code container here…

    All YouTube & Vimeo Links Broken

    But the code in the other forum wouldn’t fix the global $wp_embed code I had in the first post.

    #1134274
    Nico
    Member

    Hi there @psasser,

    Thanks for reaching out and for following up once you could get this working!

    Sorry for the hassle with embeds 🙁 Hopefully the fix for oembeds is already coded and waiting to be released next week, so hopefully this won’t be an issue for too long.

    I took a look into the run_shortcode method but couldn’t see why is not working and wp_oembed_get is, but glad to hear the later works for you!

    Please let me know if there’s anything else I can do for you,
    Best,
    Nico

    #1140380
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘$wp_embed->run_shortcode issue’ is closed to new replies.