[WordPress] 外掛分享: RSS Featured Image

首頁外掛目錄 › RSS Featured Image
WordPress 外掛 RSS Featured Image 的封面圖片
2,000+
安裝啟用
★★★★★
5/5 分(23 則評價)
889 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.4+ v1.0.6 上架:2018-01-31

內容簡介

RSS Featured Image 外掛會在你的 RSS 饋料中(在 media:content 中)加入精選圖片。它與 Mailchimp (|RSSITEM:IMAGE|) 相容。實際上,它基本上和另一個更出名的外掛做的一樣,但不會在你的 WordPress 管理介面中造成混亂。這是一個簡單的任務,我相信它應該是看不見的,可以在背景中平穩運行,不會對 UI 和整個 WordPress 表現造成影響。

使用方式

預設,圖像的大小為「大」。我認為為此增加新的選項到你的 WordPress 管理介面會很可惜,所以如果你想更改大小,我提議你使用過濾器 🙂 你可以在 functions.php 中加入一些程式碼來處理這個問題。這是你可以使用的方式:

function thumbnail_size_for_rss( $default ) {
return 'thumbnail';
}
add_filter( 'rfi_rss_image_size', 'thumbnail_size_for_rss', 10, 1 );

外掛標籤

開發者團隊

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

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

原文外掛簡介

RSS Featured Image adds the featured image into your RSS feed (in the media:content). It works nicely with Mailchimp (|RSSITEM:IMAGE|). In fact, it basically does the same thing as another (and more famous) plugin but without cluttering your WordPress Admin. This is a simple task, and I believe it should be invisible and run peacefuly in the background, with no impact on the UI and the overall WordPress performance.
Usage
By default, the size of the image is “large”. I think it would be a shame to add new options to your WordPress admin only for this, so if you want to change the size, I propose you a filter 🙂 You can include some code in your functions.php to take care of this. This is how you can use it:
function thumbnail_size_for_rss( $default ) {
return ‘thumbnail’;
}
add_filter( ‘rfi_rss_image_size’, ‘thumbnail_size_for_rss’, 10, 1 );

延伸相關外掛

文章
Filter
Apply Filters
Mastodon