
內容簡介
My Content Management 建立了一組自定義文章類型,每個類型都有自定義分類和一組常見的自定義欄位。提供一個共同的界面來創建常用的內容工具。
除了預設的文章類型和欄位組,您可以創建新的自定義文章類型,創建新的自定義欄位組,並編輯內建的文章類型和自定義欄位組。
My Content Management 沒有預設樣式,因此您不必擔心插件和佈景主題之間的衝突問題。它有預設的 HTML,但可以通過包括的模板系統完全替換,或者創建自己的佈景主題模板文件以顯示這些特定的內容類型。
支援
My Content Management 不提供支援。
如何使用 My Content Management
所有內容都可以使用短碼 [my_content type=’custom_post_type’] 來顯示。其他支援的屬性包括:
type (類別或以逗號分隔的類別清單)
display (自定義、完整、摘要或列表)
taxonomy (關聯分類法的縮略語:必須獲取與文章相關的分類項目列表;包含一個項目以按該項目限制)
term (命名分類法中的項目)
operator (IN、NOT IN 或 AND) == 如何處理所選項目。選擇具有該項目的文章、不具有該項目的文章或使用所提供的所有項目。
count (要顯示的項目數 - 預設顯示所有)
order (顯示項目的順序 - 預設順序為「菜單順序」)
direction (排序是升序「ASC」還是降序「DESC」(預設))
meta_key (按自定義欄位排序,如果 'order' 為 'meta_value' 或 'meta_value_num' )
template (設定為文章類型以使用該文章類型設置的模板。如果「display」等於「custom」,請編寫自定義模板。)
custom_wrapper (僅在使用自定義模板時使用;在包含適當類別的 HTML 元素中包裹所有結果)
offset (整數:在顯示之前跳過一個數量的文章。)
id (逗號分隔的 ID 列表以顯示一組文章;顯示單個 ID 以顯示一篇文章。)
cache (整數:緩存此短碼結果的時間(以小時為單位))
year (整數)
month (整數,1-12)
week (整數,0-53)
day (整數,1-31)
使用短碼 [custom_search type=’custom_post_type’] 可以訪問任何自定義文章類型的搜尋表單
使用 [my_archive type=’custom_post_type’ taxonomy=’taxonomy’] 短碼可以為特定文章類型和分類法創建站點地圖。其他支援的屬性包括上面提到的所有屬性,以及:
exclude (要從站點地圖中排除的逗號分隔項目列表)
include (要在站點地圖中顯示的逗號分隔項目列表)
「id」屬性不支援在 [my_archive] 短碼中。(這很傻。)[my_archive] 短碼支援一個「show_links」屬性,會開啟導覽清單以導航到每個顯示的分類。
外掛標籤
開發者團隊
原文外掛簡介
My Content Management creates a set of custom post types, each with a custom taxonomy and a set of commonly needed custom fields. A single common interface to create popularly desired content tools.
In addition to the default post types and field groups, you can create new custom post types, create new groups of custom fields, and edit the post types and custom field groups that are built in.
There’s no default styling in My Content Management, so you won’t have any problems with conflicts between the plug-in and your theme. There is default HTML, but it can be 100% replaced through the included templating system, or by creating your own theme template documents to display these specific content types.
Support
My Content Management is provided with no support.
How to Use My Content Management
All content can be displayed using the shortcode [my_content type=’custom_post_type’]. Other supported attributes include:
type (single or comma-separated list of types)
display (custom, full, excerpt, or list)
taxonomy (slug for associated taxonomy: required to get list of terms associated with post; include a term to limit by term)
term (term within named taxonomy)
operator (IN, NOT IN, or AND) == how to treat the selected terms. Choose posts with that term, without that term, or using all terms supplied.
count (number of items to display – default shows all)
order (order to show items in – default order is “menu_order” )
direction (whether sort is ascending, “ASC”, or descending, “DESC” (default))
meta_key ( custom field to sort by if ‘order’ is “meta_value” or “meta_value_num” )
template ( set to a post type to use a template set by that post type. If “display” equals “custom”, write a custom template. )
custom_wrapper ( only used when custom template in use; wraps all results in this html element with appropriate classes)
offset (integer: skip a number of posts before display.)
id ( comma separated list of IDs to show a set of posts; single ID to show a single post.)
cache (integer: number of hours to cache the results of this shortcode)
year (integer)
month (integer, 1-12)
week (integer, 0-53)
day (integer, 1-31)
A search form for any custom post type is accessible using the shortcode [custom_search type=’custom_post_type’]
Create a site map for a specific post type and taxonomy using the [my_archive type=’custom_post_type’ taxonomy=’taxonomy’] shortcode. Other supported attributes include all those above, plus:
exclude (list of comma-separated taxonomy terms to exclude from the site map)
include (list of comma-separated taxonomy terms to show on the site map)
The “id” attribute is not supported in the [my_archive] shortcode. (That would be silly.) The [my_archive] shortcode does support a “show_links” attribute which will turn on a navigation list to navigate to each displayed category.
