WordPress.org

Forums

Events Manager
[resolved] Auto embed movies from YouTube/Vimeo. The right way? (13 posts)

  1. Chantal Coolsma
    Member
    Posted 2 years ago #

    Since upgrading WordPress to version 3.5 and Events Manager to the latest version, auto embed of YouTube/Vimeo movies doesn't work anymore.

    I previously used

    <?php the_content(); ?>

    to display the event or location content. This didn't work anymore.

    Now I changed single-event.php and replaced it with

    <?php echo $EM_Event->output('#_EVENTNOTES'); ?>

    This shows the content, but doesn't convert a YouTube url to a movie.

    What is the right way to get this to work again?

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

  3. Chantal Coolsma
    Member
    Posted 2 years ago #

    I found that already. But shouldn't those URLS be translated to embeds automatically? WordPress does it using the_content by default.

  4. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    probably not happening because we're overwriting the_content with our formats after WP has converted the links. will look into that asap, because ideally it should work with the [embed] shortcode too

    an alternative for the moment is to use a plugin like jetpack which has embed shortcodes too e.g.

    [youtube=http://www.youtube.com/watch?v=JaNH56Vpg-A]

    tested this and works on the demo site - http://demo.wp-events-plugin.com/events/pierce-the-veil-2012-12-18/

  5. Chantal Coolsma
    Member
    Posted 2 years ago #

    Thanks Marcus. Client has a lot of events/locations with almost every event/location a youtube or vimeo link in the content. Would take a lot of work to change them all. (and a customer who will be angry)

  6. Chantal Coolsma
    Member
    Posted 2 years ago #

    [embed] code the Jetpack method doesn't work either.

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    did you try out the youtube example I gave above? That definitely does work, as you can see on the demo.

  8. Chantal Coolsma
    Member
    Posted 2 years ago #

    Hi Marcus,

    It works on a normal blogpost with both URL only and [youtube=...] However it doesn't work from Events or Locations. So there is something wrong.

    Any ideas?

  9. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    have you tried this on a default theme? or maybe with other plugins disabled?

    if you have a sample link where you're trying this on, it may help (although won't be able to check till after the holidays)

  10. Chantal Coolsma
    Member
    Posted 2 years ago #

    I already found a solution this morning. I have deactivated a popular posts plugin, which wasn't needed. I reverted back to <?php the_content(); ?> and now all movies or soundcloud tags are shown okay.

    Still appears a mystery why it doesn't work with #_EVENTNOTES.

  11. agelonwl
    Member
    Posted 2 years ago #

    thanks for the updates.

  12. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    that would probably be because the 'the_content' filter isn't fired which would be what converts those fields

    maybe when I fix the embed shortcode not working it'll also fix this problem too.

  13. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    FYI, this has been fixed in the latest dev version and will be in the next update. Embed codes and e.g. youtube urls now get converted correctly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic