這三個關系,一下子不好理解,在實際運用時多留意,用多了就熟悉了。
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
主題貓WP建站,累計幫助1300+客戶成功建站,為站長提供支持!
立刻開啟你的建站之旅