Featured Image via URL

This plugin is DEPRECATED! You may use Featured Image From URL instead.

WordPress 從 v2.9 開始提供 Post Thumbnail 的功能,到 v3.0 以後改稱為 Featured Image,它可以將某一張照片設定為某一篇文章的特色圖片,如果所使用的 theme 有支援此一功能,即可在文章列表中或是 related posts 中顯示此一圖片,但目前此一功能只能透過上傳到主機的媒體庫 (Media) 中的圖片來設定,而我平時都是將圖片上傳到 Flickr,如果要再多一個上傳到主機的步驟,實在麻煩,如果可以直接將 flickr 中圖片的 url 指定為 Featured Image 那該有多好啊?

在打造新輪子之前,搜尋了一下,找到一個 External URL Link as Featured Images 非官方的 plugin,似乎符合我的要求,不過似乎是要付錢的,算了算了。

之前用了一個 Auto Post Thumbnail 的 plugin,它可以自動將文章中的第一張圖片,設為 featured image,老實說這個已經達成我大部分的目的,但就是有那麼點少少的時候,用到的第一張圖片不是我想設的特色圖片,這時它又沒有調整空間了。於是我把裡面的核心程式碼抽出來,改成這個 Featured Image via URL plugin。

安裝

可以在 WP Plugin Directory 裡找到 Featured Image via URL,下載後解壓縮至 wp-content/plugins 中,或是透過 WP 後台 > Plugins > Add New 搜尋後安裝。

使用

目前會在 New Post 中 Featured Image 欄位下新增一新欄位 Featured Image via URL

Featured Image via URL

將預定設為 Featured Image 的網址填入,系統會自動將圖片下載至主機,並存入媒體庫中,設定為特色圖片。

開發

在 Github 上有專案 tsaiid/wp-plugin-featured-image-via-url,歡迎 clone 或 pull request。

後記

其實這不是我第一次改 WordPress 的 plugin,前一次是改 Slimbox WP Plugin,但那次只發表在自己的 blog 裡,所以也不算正式的 WP plugin。


Read Me

=== Featured Image via URL ===
Contributors: tsaiid
Tags: Post, thumbnail, automatic, posts, featured image, image, featured, images, admin
Requires at least: 2.9.1
Tested up to: 3.6.x
Stable tag: 0.1

Automatically generate the Featured Image from the specified image url in post.

== Description ==

Featured Image via URL is a plugin to generate the featured image of post from the image url specified.
The image will be fetched back and saved into the Media Library with all supported sizes.
If the featured image is already present, the plugin will do nothing.

This plugin is modified from Auto Post Thumbnail by adityamooley.

For more details, see http://tsai.it/project/wordpress-plugins/featured-image-via-url/

== Installation ==

1. Upload directory 'featured-image-via-url' to the '/wp-content/plugins/' directory
2. Activate the plugin through the 'Plugins' menu in WordPress

== Changelog ==

= 0.1 =
First release

Download

ver 0.1