I have created a custom post type named banners. Thereby I register a new taxonomy called location that specifies on which page the banner is to be shown. Everything is great however when I click on the custom posts type ‘Banner’ in the admin window I see all the banners created however the table does not have a column for the taxonomy ‘Location’.
In other words I want to be able to see what location the banner is in, in the banners listing.
For those interested, the
register_taxonomyregister_taxonomy function, as of WordPress 3.5, now offers an argument forshow_admin_column
(false by default). Set totrue
, it automatically displays the taxonomy column in the admin.You can use the manage_post-type_custom_column and manage_edit_post-type_columns filters to add your taxonomy column to the post type listing.
In addition to Jonathan Wold answer, you can add the ability to filter by your custom taxonomy like this: