Title: Featured Video
Author: LucP
Published: <strong>2011 年 9 月 22 日</strong>
Last modified: 2012 年 7 月 5 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/featured-video.svg)

# Featured Video

 由 [LucP](https://profiles.wordpress.org/towonder/) 開發

[下載](https://downloads.wordpress.org/plugin/featured-video.1.5.4.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/featured-video/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/featured-video/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/featured-video/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/featured-video/#developers)

 [技術支援](https://wordpress.org/support/plugin/featured-video/)

## 外掛說明

Featured video allows you to add a YouTube or Vimeo video to one of your posts and
get to it using the shortcode [featured-video],
 next to that you can also embed
it right in the code of your theme with the_post_video()!

the_post_video() returns your video standard with a 560×315 resolution. You can 
pass along the width and height, if
 you would like to change this, so: the_post_video(
600,400) will return the video with a resolution of 600×400.

Next to the width and height you can pass along the window mode (only for youtube)
which defaults to transparent.
 You can also edit the ‘allowfullscreen’ variable
of the iframe. So a featured video with different width, height, windowmode and 
allowfullscreen would be: the_post_video(600,400,’window’,”);

There are a few other functions you can use in your theme (all parameters are optional):

    ```
    has_post_video(post_id) // same as has_post_thumbnail(), returns true or false.
    get_the_post_video(post_id, width, height, windowmode, allowfullscreen) // will not echo the video. Has the option to pass a post_id 
    the_post_video_thumbnail(post_id) // show the video thumbnail
    get_the_post_video_thumbnail(post_id) // will not echo the video thumbnail directly.
    the_post_video_image(post_id) // get the big version of the thumbnail
    get_the_post_video_image(post_id) //will not echo the video image directly
    ```

This plugin currently only supports YouTube and Vimeo and works with the url’s of
single video’s.

## 安裝方式

This section describes how to install the plugin and get it working.

e.g.

 1. Upload `featured-video` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Copy/paste your embed-code in the textfield when you are editing a post.

## 常見問題集

  It keeps coming up blank

Maybe the url of the video you are trying to load is a bit too long or complicated,

try the embedcode (on YouTube) or try the single video url on vimeo: http://vimeo.
com/31332023

  I keep getting the error that my embedcode isn’t right

If your embedcode starts with an object-tag you’re using an older version of the
embedcode. Try looking for
 the newer embedcode, it starts with the iframe tag.

## 使用者評論

![](https://secure.gravatar.com/avatar/b5174bf2e0d07687f175ceab66e9021671897c8ef6764b9daeaf1f4410a6d18c?
s=60&d=retro&r=g)

### 󠀁[Doesn’t work](https://wordpress.org/support/topic/doesnt-work-1871/)󠁿

 [](https://profiles.wordpress.org/luuk123/) 2018 年 5 月 8 日

Issues with other plugins, I guess.

 [ 閱讀全部 4 則使用者評論 ](https://wordpress.org/support/plugin/featured-video/reviews/)

## 參與者及開發者

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

參與者

 *   [ LucP ](https://profiles.wordpress.org/towonder/)

[將〈Featured Video〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/featured-video)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/featured-video/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/featured-video/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/featured-video/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/featured-video/)。

## 變更記錄

#### 1.5.4

 * Fixed the problems with Vimeo’s new https protocol.

#### 1.5

 * Removed the post-type constraint.
 * added the option to change the ‘allowfullscreen’ variable and wmode (last one
   only in youtube)

#### 1.4

 * Added support for Vimeo
 * Bugs have been fixed
 * Added the [featured-video] shortcode

#### 1.0

 * First stable version

## 中繼資料

 *  版本 **1.5.4**
 *  最後更新 **14 年前**
 *  啟用安裝數 **100+**
 *  WordPress 版本需求 ** 3.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.4.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/featured-video/)
 * 標籤:
 * [featured](https://tw.wordpress.org/plugins/tags/featured/)[media](https://tw.wordpress.org/plugins/tags/media/)
   [video](https://tw.wordpress.org/plugins/tags/video/)[youtube](https://tw.wordpress.org/plugins/tags/youtube/)
 *  [進階檢視](https://tw.wordpress.org/plugins/featured-video/advanced/)

## 評分

 4 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/featured-video/reviews/?filter=5)
 *  [  1 個 4 星使用者評論     ](https://wordpress.org/support/plugin/featured-video/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/featured-video/reviews/?filter=3)
 *  [  1 個 2 星使用者評論     ](https://wordpress.org/support/plugin/featured-video/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/featured-video/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/featured-video/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/featured-video/reviews/)

## 參與者

 *   [ LucP ](https://profiles.wordpress.org/towonder/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/featured-video/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://www.to-wonder.com)