custom post types - Empty taxonomy items for CPT in admin grid

In admin grid for post taxonomy, if I'll click on "Items" link, I'll get all post, associated with t

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.

Share Improve this question asked Jul 7, 2020 at 16:55 user3013494user3013494 451 silver badge7 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

The 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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742282853a4414809.html

相关推荐

  • custom post types - Empty taxonomy items for CPT in admin grid

    In admin grid for post taxonomy, if I'll click on "Items" link, I'll get all post, associated with t

    22小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信