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.

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

本文标签: custom post typesEmpty taxonomy items for CPT in admin grid