內容簡介
CustomXML 使用自訂分類法來建立可被 Exact Target 或其他服務利用的 Rss 資料來源。
此外掛程式可以建立自訂的 XML 資料來源格式,讓 Exact Target 或其他需要資訊來自 Rss/XML 資料來源的服務使用。
啟用此外掛程式會新增一個自訂分類法稱為「電子郵件標籤 (Email Tags)」至文章中。此自訂分類法可被外掛程式使用來產生自訂的 Rss 資料來源端點。而「電子郵件標籤」是像其他 WordPress 檔案庫一樣的自訂標籤。不過在外掛程式的設定頁面上可以套用自訂的佈局設定,以自訂資料來源的長度、資料來源圖片大小和內容長度等設定。
關於圖片的注意事項:
由於圖片尺寸的特性,我不會新增功能以返回並調整正確類別的所有圖片的大小。如果你需要更改尺寸並且返回更改圖片尺寸,請嘗試重新生成縮略圖插件 (Regenerate Thumbnails plugin)
目前此功能僅限於「文章」。但是,若要將其新增到其他文章類型,請在 ‘CustomXML\tag_post_types’ 上創建一個新的篩選器並將自訂文章類型加入陣列中。
外掛程式還創建了一個自訂節錄,可用於覆蓋資料來源預設抓取的內容。它會使用自訂節錄(如果存在)而不是使用部分內容來生成描述。否則,它將從除了節錄之外的節段,最後再從文章內容擷取節錄。
資料來源格式如下:
``
文章標題
文章永久連結
相關影像 URL
故事簡介
“
資料來源可在以下位置找到
基礎網址:example.com/?feed=xtxml
自訂電子郵件標籤:example.com/email-tag/email-tag-slug/?feed=xtxml
其他分類法:example.com/category/category_name/?feed=xtxml
即將推出
建立設定以選擇此自訂分類法應該註冊於哪些文章類型。目前僅透過使用篩選器 (‘CustomXML\tag_post_types’) 可存取。
外掛標籤
開發者團隊
原文外掛簡介
CustomXML uses a custom taxonomy to create rss feeds that can be utilized by Exact Target or
other services.
This plugin creates a custom xml feed, formatted to be usable by Exact Target or other any
other service that relies on information from RSS/XML feeds.
Activating the plugin adds a custom taxonomy called “Email Tags” to posts. This custom
taxonomy is utilized by the plugin to generate custom endpoints for rss feeds. “Email Tags”
are custom tags that appear like any other archive in WordPress. However, custom layout
settings can be applied on the plugin settings page to customize the length of the feed,
the size of the images in the feed, and the length of the content in the feed.
Note about images:
Because of the nature of image sizes, I will not add functionality to go back and resize
all images for the correct categories. If you need to change it and go back to change image
sizes, try the Regenerate Thumbnails plugin
Right now, this is limited to just “posts”. However, to add it to additional post types,
create a new filter on ‘CustomXML\tag_post_types’ to and add the custom post types to the
array.
The plugin also creates a custom excerpt that can be used to override the default grabbed
by the feed. Rather than using a portion of the content to generate the description, it
will use the custom excerpt, if it exists. Otherwise, it’ll pull an excerpt from the except,
and finally from the post.
The format of the feed is:
``
Title of the Post
Permalink to the Post
Associated Image URL
Story Description
“
Feeds can be located at
Base: example.com/?feed=xtxml
Custom Email Tag: example.com/email-tag/email-tag-slug/?feed=xtxml
Other taxonomy: example.com/category/category_name/?feed=xtxml
Upcoming
Create setting to choose which post types the taxonomy should be registered with. Accessible
currently only by using a filter (‘CustomXML\tag_post_types’).
