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
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742282853a4414809.html
评论列表(0条)