Linux 软件免费装
Banner图

Featured Video Plus

开发者 a.hoereth
更新时间 2016年12月18日 07:09
捐献地址: 去捐款
PHP版本: 3.7 及以上
WordPress版本: 4.7
版权: GPL-2.0
版权网址: 版权信息

标签

flash post video image featured videos html5 vimeo youtube dailymotion soundcloud thumbnail spotify overlay lazy

下载

2.3.1 2.3.2 2.3.3 1.0 1.1 1.2 1.3 1.4 1.5.1 1.6 1.6.1 1.7 1.7.1 1.8 1.9 1.9.1 2.0.0 1.5 2.0.1 2.0.2 2.0.3 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0

详情介绍:

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:
  1. 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
  2. insert the [featured-video-plus]-Shortcode in your posts or
  3. 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.

安装:

Installation
  1. Visit your WordPress Administration interface and go to Plugins -> Add New
  2. Search for Featured Video Plus, and click Install Now below the plugin's name
  3. When the installation finished, click Activate Plugin
The plugin is ready to go. Now edit your posts and add video links to the Featured Video box on the right! Plugin specific settings can be found under Settings -> Media. Theme integration If the automatic integration fails you can always fallback to either using the shortcode or adjusting your themes sourcecode manually: Shortcode [featured-video-plus] [featured-video-plus width=300] PHP-functions the_post_video( $size ) has_post_video( $post_id ) get_the_post_video( $post_id, $size ) get_the_post_video_url( $post_id ) get_the_post_video_image( $post_id ) get_the_post_video_image_url( $post_id ) All parameters are optional. If no $post_id is given the current post's ID will be used. $size is either a string keyword (thumbnail, medium, large or full) or a 2-item array representing width and height in pixels, e.g. array(560,320). When editing your theme's sourcecode keep in mind that a future update through WordPress.org might overwrite your changes. Consider creating a child theme to prevent that.

屏幕截图:

  • A Featured Video in the Twenty Fifteen theme on [yrnxt.com](http://yrnxt.com/wordpress/featured-video-plus).
  • Featured Video and Featured Image boxes on the post edit screen.
  • Featured Video settings on the `Settings -> Media` administration screen.

常见问题:

Why do I just get text back after adding an URL to the Featured Video input?

If the plugin just returns text instead of the actual video the pasted url is probably not valid or not from a valid video provider. Try inserting the raw embed code instead or check the docs to see which providers are supported.

How do I use my local videos?

Click the small media icon in the Featured Video input box on the post edit screen and upload your video or choose it from the media library. WordPress does not support all formats tho, check this table for details.

Why do I not see a featured video or image on the frontend at all?

For the videos to be automatically displayed you need to define a Featured Image. Depending on your featured video settings this image will never be shown if a video is set. If your theme does not support featured images the plugin also has no chance of working out of the box.

Why does the frontend still display the featured image although I added a featured video to the post?

Sadly not all themes work out of the box. Themes need to make use of WordPress' native Post Thumbnail functionality (specifically get_the_post_thumbnail() and/or the_post_thumbnail()) - these functions are where the plugin can hook into the theme and modify what is displayed. Consider contacting the theme's creator or modifying the theme's sourcecode in order to add the plugin's PHP-functions.

How can I make the videos fit into their designated space in my theme?

Take a look at your media settings and try using a fixed width instead of responsive sizing.

How can I make the plugin work with infinite scrolling?

While the plugin tries to handle infinite scrolling automatically, it does not work for all configurations. In those cases you will want to manually call initFeaturedVideoPlus() using JavaScript everytime new articles have been loaded. Most infinite scroll plugins should have some kind of post-load hook.

Can I help translating the plugin?

Yes, please! Check out the official Featured Video Plus Translation Project.

更新日志:

2.3.3: 2016-12-17 2.3.1 & 2.3.2: 2016-12-16 2.3.0: 2016-12-15 2.2.3: 2016-07-19 2.2.2: 2015-09-15 2.2.1: 2015-09-08 2.2.0: 2015-07-20 2.1.2: 2015-06-16 2.1.1: 2015-06-15 2.1.0: 2015-06-11 2.0.3: 2015-06-01 2.0.2: 2015-06-01 2.0.0 & 2.0.1: 2015-06-01 1.9.1: 2014-09-06 1.9: 2014-01-02 1.8: 2013-05-16 1.7.1: 2013-04-30 1.7: 2013-04-30 1.6.1: 2013-04-18 1.6: 2013-04-16 1.5.1: 2013-03-27 1.5: 2013-03-22 1.4: 2013-03-15 1.3: 2013-01-16 1.2: 2013-01-09 1.1: 2012-12-16 1.0: 2012-12-13