[WordPress] 外掛分享: Post Kinds

首頁外掛目錄 › Post Kinds
WordPress 外掛 Post Kinds 的封面圖片
100+
安裝啟用
★★★★
4.3/5 分(6 則評價)
709 天前
最後更新
問題解決
WordPress 4.9.9+ PHP 7.0+ v3.7.3 上架:2015-02-09

內容簡介

「Post Kinds」外掛可透過實踐 IndieWeb 所開發的標準實現與其他網站互動及回應的支援。外掛在經典編輯器中實現了「貼文種類」(kinds of posts),但不適用於 Gutenberg 編輯器。

此外掛可透過與 貼文格式 的使用方式,辨識某些被動貼文的特定類型。雖可以與貼文格式並行運作,但強烈建議將「Post Kinds」當作其替代方案,使用 IndiWeb 貼文類型作為其替換物。

大多數網站都不需要設置所有的貼文種類,發佈哪些種類的貼文僅限於您的需求。

隱私與資料存儲通知

「Post Kinds」外掛在貼文中儲存了額外的數據,用以表示您所回應的內容,這些數據可以是手動添加,或從源 URL 解析而來(如有提供的話)。這意味著您有額外的責任負責使用這些資料,對於任何請求刪除資訊也必須負責。

鳴謝

「Post Kinds」的種類圖標來自Font Awesome,使用副本的《CC BY 4.0》授權許可附帶在內。
感謝Chris Aldrich對本外掛的問題反饋、建議和使用經驗。

主題支援

「Post Kinds」會自動添加到the_content和the_excerpt篩選器。由於這些內容可能或可能不希望出現在內容區塊中,您可以按照以下提示移除這些篩選器並直接調用kind_display。這樣它就可以出現在內容區塊的外部。若要移除自動顯示,請在您的主題中加入以下內容:
* add_filter( 'kind_content_display', '__return_false' );

函數has_post_kind,set_post_kind和set_post_kind可讓您在貼文中操縱有關貼文種類的設定。函數get_post_kind_string可返回種類的顯示名稱。

如果您想要自定義顯示的外觀,可以在主題中創建一個名為kind_views的目錄,複製外掛中的視圖目錄並進行修改。這樣在未來的更新中也會保留這些自定義的更動。

外掛標籤

開發者團隊

⬇ 下載最新版 (v3.7.3) 或搜尋安裝

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

原文外掛簡介

Post Kinds adds support to the Classic Editor for responding to and interacting with other sites using the standards
developed by the IndieWeb by implementing kinds of posts. It is not compatible with Gutenberg.
It can also distinguish certain types of passive posts in a manner similar to post formats. While it can work alongside
post formats, it is recommended as a replacement as it is designed as a replacement using IndieWeb Post Types.
Many sites will not need all of the kinds set up. What kinds of posts you wish to publish are specific to your needs.
Privacy and Data Storage Notice
Post Kinds stores extra data in a post indicating what you are responding to. This data is either hand-added or can be parsed from the source URL if provided. This means you have additional
responsibilities to responsibly use this data, and to remove information on request.
Credits

Kind Icons are currently provided by Font Awesome and are licensed as CC BY 4.0. A copy of the license notice is bundled.
Chris Aldrich always receives a credit on my plugins due his regular feedback, input, and usage.

Theme Support
Post Kinds automatically adds information to the_content and the_excerpt filter. Being as this is inside the content block, which may or may not be desirable, you may remove these filters as noted
below and call kind_display directly. This will allow it to appear outside the content block. To remove the automatic display, add the following to your theme.
* add_filter( 'kind_content_display', '__return_false' );
The functions has_post_kind, set_post_kind, and set_post_kind will allow you to manipulate the kind settings in a post. get_post_kind_string will return the display name of a kind.
If you want to customize the look of the display, you can create a directory in your theme called kind_views, copy the file from the views directory of the plugin, and modify it. This will persist
through future plugin updates.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon