Title: Fix for Vimeo
Last modified: August 31, 2016

---

# Fix for Vimeo

 *  [jiggaman](https://wordpress.org/support/users/jiggaman/)
 * (@jiggaman)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/fix-for-vimeo/)
 * Sometimes people don’t give permission for the vimeo videos to be embedded…and
   as a result their new error message..and array will mess up this plugin. Here’s
   the fix:
 * Go to the end of the file video-thumbnails/video-thumbnails.php:
 * Go to the end of the file, and replace the video thumbnail function with this:
 *     ```
       function video_thumbnail( $post_id = null ) {
               $video_thumbnail = get_video_thumbnail( $post_id );
               if ( $video_thumbnail  == null || !is_string($video_thumbnail )  ) {
                       echo plugins_url() . '/video-thumbnails/default.jpg';
               } else { echo $video_thumbnail; }
       }
       ```
   
 * You’re welcome everybody 😀
 * [https://wordpress.org/plugins/video-thumbnails/](https://wordpress.org/plugins/video-thumbnails/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [jiggaman](https://wordpress.org/support/users/jiggaman/)
 * (@jiggaman)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/fix-for-vimeo/#post-7152158)
 * bump
 *  Plugin Author [Sutherland Boswell](https://wordpress.org/support/users/sutherlandboswell/)
 * (@sutherlandboswell)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/fix-for-vimeo/#post-7152159)
 * I recommend using [featured images](https://codex.wordpress.org/Post_Thumbnails)
   rather than the video thumbnail function.
 * I’m preparing version 3.0 for release and these functions are likely being removed.
   Do you have save to media library enabled?
 *  Thread Starter [jiggaman](https://wordpress.org/support/users/jiggaman/)
 * (@jiggaman)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/fix-for-vimeo/#post-7152160)
 * >> I recommend using featured images rather than the video thumbnail function.
 * I’m confused, isn’t the code I wrote better…this way they don’t have to do anything
   unless they want to add the featured image and then then things will still be
   left working even if a file permissions aren’t set right. Why not just include
   this in your code.
 * >> I’m preparing version 3.0 for release and these functions are likely being
   removed.
 * I’m unsure what you mean

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fix for Vimeo’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/video-thumbnails_3e6f7f.svg)
 * [Video Thumbnails](https://wordpress.org/plugins/video-thumbnails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/video-thumbnails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/video-thumbnails/)
 * [Active Topics](https://wordpress.org/support/plugin/video-thumbnails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/video-thumbnails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/video-thumbnails/reviews/)

## Tags

 * [bug fix](https://wordpress.org/support/topic-tag/bug-fix/)

 * 3 replies
 * 2 participants
 * Last reply from: [jiggaman](https://wordpress.org/support/users/jiggaman/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/fix-for-vimeo/#post-7152160)
 * Status: not resolved