插件:Featured Video Plus
A picture is worth a thousand words. How many words is a video worth?
Featured Videos work like Featured Images, just smoother: Paste a video URL into the designated new box on the post edit screen and the video will be displayed in place of a post image.
There are three ways to get the videos onto your page:
- Automagically! If your theme makes use of WordPress』 native featured image functionality you are set: Automatic insertion, lazy loading or lightbox overlays, its your choice. If this does not work you can either
- insert the
[featured-video-plus]
–Shortcode in your posts or - manually make use of the PHP-functions in your theme』s source files.
For more details, check the installation page.
Theme compatibility
Sadly many themes do not follow the WordPress standards and implement their own fancy functions for displaying featured images – those very likely break this plugin. Check out the FAQ. Another common problem are sliders: Videos, in general, do not like sliders at all.
See the plugin in action on yrnxt.com. There is a button in the sidebar to switch between the different featured video display modes: Automatic, lazy and overlay.
Besides Local Videos you can use videos from a whole lot of external providers like YouTube, Vimeo and Dailymotion. SoundCloud and Spotify (including playlists) are supported as well. Check the WordPress Codex for a complete list. If some provider is not listed you can always just use an embed code or whatever HTML you like.
After installing the plugin check your site』s Media Settings (Settings -> Media
in the administration interface): The plugin adds quite some little helper options there. Change to lazy or overlay mode, tweak video sizing, individualize the look of the most prominent providers』 video players and turn on autoplay or video looping. By default videos try to dynamically fit their parent containers width and adjust their size responsively.
Support
I do read all support questions in the forums but cannot reply to all of them. The plugin is an unpaid side project and full support would require more time than I can invest for free for over 20k active installs. If you really need help, consider buying me a cookie – best way to attract my attention and to support future enhancements.
您需要做的就是粘貼視頻網址,插件會自動獲取並在元數據框中顯示預覽。
當您在自己的網站上預覽帖子時,特色圖片將被視頻替換。您的預覽可能會有所不同,具體取決於主題處理特色圖像的方式。
您可以通過訪問設置»媒體來微調您網站上的精選視頻。
首先,您需要選擇使用設置。默認選擇是使用視頻自動替換特色圖像。您可以更改它以僅在單擊特色圖像時打開視頻,或者顯示特色視頻並在可能的情況下自動播放。
如果您不選擇上述任何一項,則可以使用短代碼或PHP函數手動顯示精選視頻。
接下來,您可以為視頻啟用自動播放並調整視頻大小。默認大小設置為自動,但如果這不適用於您的主題,則可以手動輸入高度和寬度。
在其他選項中,您可以配置如何處理本地視頻。這些是手動上傳的視頻,這是一個不好的選擇。了解為什麼不應該將視頻上傳到WordPress網站。
該插件可以處理YouTube,Vimeo和DailyMotion視頻,我們建議您在其中一個網站上傳。
單擊保存更改按鈕,當您對設置感到滿意時。