內容簡介
啟用WordPress在其RSS2饋線中包含縮略圖和自訂欄位數據。
如何運作:
檢索文章縮略圖:在饋線鏈接中添加「post_thumbnail=1」(例如「http://www.mywpsite/feed/?post_thumb=1」)。
檢索自訂欄位:在饋線鏈接中添加「meta_keys=meta_name1[,meta_name2,meta_name3,…]」(例如「http://www.mywpsite/feed/?meta_keys=post_quote,post_contributor」,如果這些欄位已添加到文章中,則將檢索「post_quote」和「post_contributor」自訂欄位的值)。
進一步自定義您的饋線:使用列在 https://codex.wordpress.org/WordPress_Feeds/ 上的任何其他 WP饋線選項。
範例:
在 http://news.cals.wisc.edu/feed/?cat=67&post_thumb=1&meta_keys=academic_info 可以檢索類別67中的所有文章及其縮略圖(如果有),以及「academic_info」欄位(如果有)的值。
外掛標籤
開發者團隊
原文外掛簡介
Enables WordPress to include thumbnail and custom field data in its RSS2 feed.
How is works:
To retrieve post thumbnails: Add “post_thumbnail=1” to your feed’s link. (e.g. “http://www.mywpsite/feed/?post_thumb=1”)
To retrieve custom fields: Add “meta_keys=meta_name1[,meta_name2,meta_name3,…]” to your feed’s link (e.g. “http://www.mywpsite/feed/?meta_keys=post_quote,post_contributor” will retrieve the “post_quote” and “post_contributor” custom fields’ value, if these fields have been added to the post.)
To further customize your feed: use any other WP Feed options, as listed on https://codex.wordpress.org/WordPress_Feeds/.
Example:
The http://news.cals.wisc.edu/feed/?cat=67&post_thumb=1&meta_keys=academic_info will retrieve all posts in category 67, along with their thumbnails (if available) and the value of the ‘academic_info’ field (if available).
