[WordPress] 外掛分享: Category Thumbnail

首頁外掛目錄 › Category Thumbnail
40+
安裝啟用
尚無評分
4009 天前
最後更新
問題解決
WordPress 3.5+ v1.5.0 上架:2011-02-25

內容簡介

使用 [catthumb id="CategoryID" link="true"] 可以找到指定分類中最新的設置特色圖片的文章,並返回該圖片的縮略圖。如果指定了 link="true",則圖片將鏈接到指定的分類。

您還可以使用 post_type 屬性可選地搜索自定義文章類型,使用 size 屬性指定縮略圖大小。例如: [catthumb id="CategoryID" link="true" post_type="restaurants" size="full"]

插件只會搜索特色圖片,不會搜索附件圖片。它也不會查找文章內嵌的圖片或其他附件圖片。如果一個分類中沒有任何帶有特色圖片的文章,即使該分類有帶有附加圖片的文章,該插件也不會返回縮略圖像。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.5.0) 或搜尋安裝

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

原文外掛簡介

[catthumb id=”CategoryID” link=”true”] will find the most recent post in the specified Category with a featured image and return the thumbnail for that image. If link=”true” is specified, the image will link to the category specified.
You can optionally search custom post types with the post_type attribute, and specify the thumbnail size with the size attribute. IE [catthumb id="CategoryID" link="true" post_type="restaurants" size="full"]
The plugin will only search featured images, not attached images. It will not look for images embedded in the post itself, or other attached images. If a category does not have any posts with featured images, this plugin will not return a thumbnail image, even if the category has posts with attached images.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon