Filter Custom Post Types by Taxonomy in WP Admin Dashbaord

Filter CPTs by a linked custom Taxonomy in the WP Admin Dashboard is possible with restrict_manage_posts.

Filter Cpt By Custom Taxonomy

In the screenshot there is a CPT list of posts, with a dropdown menu of a linked custom taxonomy terms which are filterable via the filter button next to it.

The code goes in functions.php

So change to your CPT – example uses ‘light’ and Custom Taxonomy – example uses ‘light_category’.

The action has a late priority of ’99’ so it ends up closer to the filter button in the dashboard.

Leave a Comment