[WordPress] 外掛分享: WPVN – Thumbnailer

首頁外掛目錄 › WPVN – Thumbnailer
全新外掛
安裝啟用
尚無評分
6125 天前
最後更新
問題解決
WordPress 2.0+ v0.6.7 上架:2009-04-27

內容簡介

這個外掛程式適用於中級使用者。

它可以幫助你以以下優先順序找到帖子附帶的圖像:自訂欄位(名稱可以是以下之一:img、image、thumbnail)- 上傳/附加圖像

注意事項
如果你啟用了 allow_url_fopen,你可以取得 URL 路徑的圖像。自訂欄位指向您上傳檔案的路徑為:/year/month/image 或 /image(取決於您的上載目錄設定)

自訂欄位使用以下這些集合 *(img、img_title、img_alt、img_class)-> CSS:img-[img_class] *(image、image_title、image_alt、image_class)-> CSS:image-[image_class] *(thumbnail、thumbnail_title、thumbnail_alt、thumbnail_class)-> CSS:thumbnail-[image_class] * img_class 或 image_class 或 thumbnail_class 的值不區分大小寫(例如:CSSClass 將變為 cssclass) * 區分大小寫不可置換

範例

最佳使用於迴圈 caro_the_image($post->ID);,顯示自訂大小的圖像。caro_get_the_image($post->ID); 回傳自訂大小的圖像 HTML 代碼。caro_the_image_url($post->ID); 顯示自訂大小圖像的 URL。caro_get_the_image_url($post->ID); 回傳自訂大小圖像的 URL。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.6.7) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WPVN – Thumbnailer」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin is destined to intermediate users.
It helps you find image that is attached to a post in this priority: – Custom field (name can be one of these: img, image, thumbnail) – Uploaded/Attached image
NOTE
If you have allow_url_fopen you can get image from an URL Path for Custom Field to your uploaded files is: /year/month/image or /image (depends on your settings for upload directory)
Custom fields use these sets * (img, img_title, img_alt, img_class) -> CSS: img-[img_class] * (image, image_title, image_alt, image_class) -> CSS: image-[image_class] * (thumbnail, thumbnail_title, thumbnail_alt, thumbnail_class) -> CSS: thumbnail-[image_class] * The value of img_class or image_class or thumbnail_class is case non-sensitve (Ex: CSSClass will be cssclass) * case sensitive and non-permutable
Example
To be used best in the Loop caro_the_image($post->ID); shows the custom-size image. caro_get_the_image($post->ID); returns the custom-size image HTML code. caro_the_image_url($post->ID); shows the URL of the custom-size image. caro_get_the_image_url($post->ID); returns the URL of the custom-size image.

延伸相關外掛

文章
Filter
Mastodon