
內容簡介
該外掛提供了一個名為「Linkify Catagories」的小工具(widget),以及一個模板標籤(template tag) c2c_linkify_categories(),允許您輕鬆地指定要列出的類別(categorie)及其顯示方式。類別可以按ID或slug指定。請參照文檔的其他部分,了解範例用法和功能。
連結: 外掛首頁 | 外掛目錄頁面 | GitHub | 作者首頁
開發人員文檔
開發人員文檔可以在DEVELOPER-DOCS.md中找到。該文檔涵蓋了外掛提供的模板標籤和鉤子(hook)。
簡單介紹一下,以下是外掛提供的模板標籤:
c2c_linkify_categories():模板標籤,用於顯示到任何數量的類別。您可以在整個列表之前和/或之後,每個類別之間以及在未列出任何類別時自訂要顯示的文本。
以下是外掛提供的鉤子:
c2c_linkify_categories:允許使用替代方法安全調用c2c_linkify_categories(),以便在禁用或刪除外掛的情況下,您對該功能的調用不會導致站點產生錯誤。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
The plugin provides a widget called “Linkify Catagories” as well as a template tag, c2c_linkify_categories(), which allow you to easily specify categories to list and how to list them. Categories are specified by either ID or slug. See other parts of the documentation for example usage and capabilities.
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_categories() : Template tag to display links to each of any number of categories specified via category IDs/slugs. You can customize text to show before and/or after the entire listing, between each category, and what to display (if anything) when no categories are listed.
This is the hook provided by the plugin:
c2c_linkify_categories : Allows use of an alternative approach to safely invoke c2c_linkify_categories() 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.
