admin管理员组文章数量:1332395
In admin grid for post taxonomy, if I'll click on "Items" link, I'll get all post, associated with this taxonomy /wp-admin/edit.php?category_name=test
. But this won't work for taxonomy for Custom Post Type. For example, /wp-admin/edit.php?cpt=test&post_type=cpt
displaying 0 items.
In admin grid for post taxonomy, if I'll click on "Items" link, I'll get all post, associated with this taxonomy /wp-admin/edit.php?category_name=test
. But this won't work for taxonomy for Custom Post Type. For example, /wp-admin/edit.php?cpt=test&post_type=cpt
displaying 0 items.
1 Answer
Reset to default 1The correct link should look like this:
/wp-admin/edit.php?{taxonomy_slug}={term_slug}&post_type={cpt_slug}
For example.
If you have taxonomy brand
and it has term (category) test
, your link will be:
/wp-admin/edit.php?brand=test&post_type=CPT
本文标签: custom post typesEmpty taxonomy items for CPT in admin grid
版权声明:本文标题:custom post types - Empty taxonomy items for CPT in admin grid 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742282853a2446413.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论