[WordPress] 外掛分享: Linkify Posts

首頁外掛目錄 › Linkify Posts
WordPress 外掛 Linkify Posts 的封面圖片
10+
安裝啟用
尚無評分
323 天前
最後更新
問題解決
WordPress 3.3+ v2.6 上架:2010-08-27

內容簡介

該外掛提供了一個名為 "Linkify Posts" 的小工具,以及一個模板標籤 c2c_linkify_posts(),使得您可以輕鬆地指定要列出及如何列出文章。文章可透過 ID 或 slug 進行指定。欲了解更多詳細使用方法和能力,請參閱文檔的其他部分。

該外掛與 WordPress 的文章自訂欄位功能一起使用時尤其方便。您可以為 "相關文章" 或 "其他產品" 定義自訂欄位,然後手動列出文章 ID,再利用此外掛所提供的功能以自訂方式顯示連結到這些文章。

連結: 外掛首頁 | 外掛目錄頁 | GitHub | 作者首頁

開發人員文檔

開發人員文檔可以在 DEVELOPER-DOCS.md 找到。該文檔涵蓋外掛所提供的模板標籤和鉤子。

作為概述,此外掛提供了以下模板標籤:

c2c_linkify_posts():模板標籤,以顯示連結到所指定的任意數量文章之一,可透過文章 ID / slug 進行指定。您可以自定義要在整個列表之前 / 之後、在每個文章之間顯示的文本,以及當沒有列出文章時顯示的內容(如果有的話)。

此外掛提供的鉤子如下:

c2c_linkify_posts:允許使用替代方法來安全地調用 c2c_linkify_categories() 以避免在停用或刪除外掛時造成對網站的錯誤呼叫。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.6) 或搜尋安裝

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

原文外掛簡介

The plugin provides a widget called “Linkify Posts” as well as a template tag, c2c_linkify_posts(), which allow you to easily specify posts to list and how to list them. Posts are specified by either ID or slug. See other parts of the documentation for example usage and capabilities.
Particularly handy when used in conjunction with the post custom field feature of WordPress. You could define a custom field for “Related Posts” or “Additional Products” and manually list out post IDs, then utilize the function provided by this plugin to display links to those posts in a custom manner.
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
Developer Documentation
Developer documentation can be found in DEVELOPER-DOCS.md. That documentation covers the template tag and hook provided by the plugin.
As an overview, this is the template tag provided by the plugin:

c2c_linkify_posts() : Template tag to display links to each of any number of posts specified via post IDs/slugs. You can customize text to show before and/or after the entire listing, between each post, and what to display (if anything) when no posts are listed.

This is the hook provided by the plugin:

c2c_linkify_posts : Allows use of an alternative approach to safely invoke c2c_linkify_posts() in such a way that if the plugin were deactivated or deleted, then your calls to the function won’t cause errors in your site.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon