這三個關係,一下子不好理解,在實際運用時多留意,用多了就熟悉了。
WordPress 預設的內容型別 , 參考官網檔案: http://codex.WordPress.org/register_post_type
The following post types(內容型別) are reserved and used by WordPress already.
post(文章), page(頁面) ,attachment , revision ,nav_menu_item
---- WordPress 預設的內容型別 ,明顯的有這幾個。
-----------------------
在 post(文章) 裡,我們看到有 category(分類) 和 tag(標籤) 兩個,這兩個就是 taxonomy 。
如果你建立了 category(分類),比如你建立了新聞分類,那麼這新聞就是 term 。
-----------------------------
那麼如何建立內容型別 (posts type) 呢?
可以使用程式碼方式: register_post_type
或者使用外掛:
types 或者 custom-post-type-ui