Vimeo thumbnails

Maybe this can help $videoID = the_field(‘video_link’); $jsonurl=”http://vimeo.com/api/v2/video/”.$videoID.’.json’; $json = file_get_contents($jsonurl,0,null,null); $json_output = json_decode($json,true); echo ‘<img src=”‘. $json_output[0][‘thumbnail_large’] .'” />’; It’s the same call using json method

Vimeo Froogaloop API, working in Fiddle but not WP

From: https://developer.vimeo.com/player/js-api#universal-event-spec If you’re embedding and controlling multiple players on a page or using our JS API library (Froogaloop), you should give each player a player_id that matches the id of the iframe element. http://player.vimeo.com/video/VIDEO_ID?api=1&player_id=vimeoplayer You may need to add the player_id query parameter to the src definition.

Vimeo froogaloop

so I’m not sure the enqueuing is even happening No, it’s not, because you only registered the scripts, but never enqueued them — which should be done using wp_enqueue_script(). Also, you should make frogaloop as a dependency for your snippet.js script. Hence, register the frogaloop script before your snippet.js script. // Register the scripts. wp_register_script( … Read more

Vimeo video embeds doesnt seem to work with ACF [closed]

If the custom field contains just the URL you can achieve this using wp_oembed_get $video_url=”https://vimeo.com/75791532″; $video = wp_oembed_get( $video_url ); echo $video; If the custom field contains other content as well something like this should work. $content=”<p>Check out hte latest vid!</p> https://vimeo.com/75791532″; $content = apply_filters(‘the_content’, $content); echo $content; the_content filter automatically applies the oembed filter.

Vimeo videos not working

After further investigation this appears to be Vimeo blocking the requests. We have two sites (one where Vimeo videos work and one where they don’t). When testing the retrieval of content via PHP we get “HTTP request failed! HTTP/1.1 403 Forbidden” on the faulty site. Anyone else reading this thread can run the same test … Read more

How do I display Youtube/Vimeo video ID on custom post type when user enters it in custom meta box?

Do you have custom post type videos? if not change videos to post add_meta_box( ‘my-meta-box-id’, ‘Enter Video ID’, ‘cd_meta_box_cb’, ‘post’, ‘normal’, ‘high’ ); Your code is fine but you are not saving the video type select box you just updated the id input field. Place this code in add_action(‘save_post’, ‘cd_meta_box_save’); if( isset( $_POST[‘my_meta_box_text’] ) && … Read more

Vimeo thumbnails [closed]

Maybe this can help $videoID = the_field(‘video_link’); $jsonurl=”http://vimeo.com/api/v2/video/”.$videoID.’.json’; $json = file_get_contents($jsonurl,0,null,null); $json_output = json_decode($json,true); echo ‘<img src=”‘. $json_output[0][‘thumbnail_large’] .'” />’; It’s the same call using json method