這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Automatic Featured Images from Videos

外掛說明

When placing a YouTube or Vimeo video within the first 800 characters of a post, the thumbnail of that video will automatically be sideloaded and set as the featured image for the post as long as the post does not already have a featured image set.

In addition, after setting the video thumbnail as the featured image, an “is_video” post meta field is updated to allow for the use of conditional statements within your loop.

Pluginize was launched in 2016 by WebDevStudios to promote, support, and house all of their WordPress products. Pluginize is not only creating new products for WordPress all the time, but also provides ongoing support and development for WordPress community favorites like CPTUI, CMB2, and more.

安裝方式

From your WordPress dashboard

  1. Visit ‘Plugins > Add New’.
  2. Search for ‘Automatic Featured Images from Videos’.
  3. Activate Automatic Featured Images from Videos from your Plugins page.

From WordPress.org

  1. Download Automatic Featured Images from Videos.
  2. Upload the ‘Automatic Featured Images from Videos’ directory to your ‘/wp-content/plugins/’ directory.
  3. Activate Automatic Featured Images from Videos from your Plugins page.

常見問題集

Installation Instructions

From your WordPress dashboard

  1. Visit ‘Plugins > Add New’.
  2. Search for ‘Automatic Featured Images from Videos’.
  3. Activate Automatic Featured Images from Videos from your Plugins page.

From WordPress.org

  1. Download Automatic Featured Images from Videos.
  2. Upload the ‘Automatic Featured Images from Videos’ directory to your ‘/wp-content/plugins/’ directory.
  3. Activate Automatic Featured Images from Videos from your Plugins page.

使用者評論

2018 年 9 月 30 日
Perfect & Simple. It crops the YouTube Videos perfectly no matter the aspect ratio. The resolution if also quite sufficient.
2018 年 5 月 14 日
Tried this a bunch of times and it doesnt work. No errors or warnings, it just never sets the featured image
2017 年 7 月 10 日
I've tested this plugin on my local server and live website, it is awesome. As a YouTuber, this plugin has helped streamline my workflow since I can now create one thumbnail for both YouTube and WordPress and have it displayed once. Note: every theme is different so the way featured images are displayed is handled by the theme, not the plugin. This plugin does it's job perfectly! Well done WebDevStudios.
2017 年 5 月 4 日
Hi, Great plugin. I was wondering though, is it possible for you to add other video hosts to the list? Such as LiveLeak, so it creates an featured image as well. If that's even possible. Thanks.
閱讀全部 25 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Automatic Featured Images from Videos〉的開發相關工作。

參與者

變更記錄

1.1.1

  • Fixed: Extra forward slash in YouTube URLs that was causing 404 errors when trying to add to media library.

1.1.0

  • Added: Metabox that displays the found video URL and embed URL. Values saved as post meta.
  • Added: Pass post ID for the wds_check_if_content_contains_video filter.
  • Added: Filters that allow customization by developers to alter default values.
  • Added: BETA: Bulk processing of posts for those missing thumbnails from videos. Please report issues found.
  • Added: BETA: WP-CLI support.
  • Fixed: Modified the way the vimeo embed URL is returned.
  • Fixed: Prevent multiple instances of same found image from being uploaded to media library.

1.0.5

  • Added function wds_get_video_url when passed a post_id returns a video URL.
  • Added function wds_get_embed_video_url when passed a post_id returns a video URL that is embeddable.
  • Added function wds_post_has_video to check if a post_id has video.
  • Deprecated wds_set_media_as_featured_image.
  • Refactored the default save_post entry function to handle logic better.

1.0.4

  • Store the full video url in post meta _video_url.
  • Refactored checks for video ID.

1.0.3

  • Switch to using WP HTTP API functions over get_headers(). Hopefully removes potential server config conflicts.
  • Reverse originally incorrect logic in YouTube thumbnail selection based on header results.
  • Return early if saving a revision.

1.0.2

  • Add support for youtube short links, fixes #3

1.0.1

  • Fix bug with special characters in YouTube video titles
  • Fix bug where duplicate images would be uploaded and set as featured image when editing a post

1.0

  • Initial release