內容簡介
此外掛提供了一些輔助函式,協助創建兩個文章類型之間的從屬關係,即一種對多種的關係,其中一種文章類型的文章是另一種的子元素(例如,一個工作列表可能有一家公司作為其父級;一個會議可能有一個小組作為其父級)。啟用此外掛後,開發人員可以輕鬆地在他們的外掛和佈景主題中編寫代碼以註冊這兩個有這種關係的文章類型。
如果需要此外掛功能範例,請查看我在 Github 上的 "Groups and Meetings" 外掛:
https://github.com/randyhoyt/mythsoc-groups
外掛標籤
開發者團隊
② 後台搜尋「Subordinate Post Type Helpers」→ 直接安裝(推薦)
原文外掛簡介
This plugin provides a number of helpers functions to aid in the creation of subordinate relationships between two post types, one-to-many relationships in which posts of one type are children of another. (For example, a Job Listing might have a Company as a parent; a Meeting might have a Group.) With this plugin activated, developers can easily write code in their plugins and themes to register two post types related in this manner.
For an example on how to use the functions this plugin makes available, check out my Groups and Meetings plugin on Github:
https://github.com/randyhoyt/mythsoc-groups
