Home › Forums › Calendar Products › Events Calendar PRO › Update breaks ACF oEmbed
- This topic has 4 replies, 5 voices, and was last updated 9 years, 9 months ago by
Allen Presher.
-
AuthorPosts
-
June 29, 2016 at 7:41 am #1133410
Allen Presher
ParticipantOne of the latest updates to the Events Calendar conflicts with Advanced Custom Fields oEmbed field. As a result multiple websites we developed using oEmbed fields to display YouTube videos are now showing an oembed card for The Events Calendar.
As an example there should be videos in the blue boxes on the left:
June 29, 2016 at 7:59 am #1133423Cliff
MemberHi. Sorry you’re affected by this known bug.
You can add this code until the fix is added (hopefully in our next bug fix release) to avoid this issue for future oEmbeds:
/** * Avoid a problem with Events Calendar PRO 4.2 which can inadvertently * break oembeds. */ function undo_recurrence_oembed_logic() { if ( ! class_exists( 'Tribe__Events__Pro__Main' ) ) return; $pro_object = Tribe__Events__Pro__Main::instance(); $pro_callback = array( $pro_object, 'oembed_request_post_id_for_recurring_events' ); remove_filter( 'oembed_request_post_id', $pro_callback ); } add_action( 'init', 'undo_recurrence_oembed_logic' );Once you add that code, you can also use the following code to fix existing / leftover / remaining oEmbeds that are still incorrect (make sure to follow the instructions closely):
https://gist.github.com/cliffordp/e331b28d0d4d3b042fc7daf714256796
I’ll mark this ticket as Pending Fix, which means this thread should receive a reply once the applicable fix has been released. I cannot guarantee when it will be fixed as it’s in the development team’s hands now. I apologize for this issue and appreciate your understanding and patience.
July 8, 2016 at 2:52 pm #1137595Geoff
MemberHey there,
We wanted to follow-up to let you know that we were able to patch this up in The Events Calendar and Events Calendar PRO 4.2.2, which are both now available to download and install if you haven’t done so already.
Please do be sure to check out our release notes for a full overview of what’s new in the release and feel free to let us know if you run into this or any other issues after the update.
Thanks so much for your patience while we worked on this!
Cheers,
GeoffJuly 23, 2016 at 9:35 am #1143411Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Update breaks ACF oEmbed’ is closed to new replies.
