Displaying column for custom taxonomy on custom post type admin page

user705100 picture user705100 · Mar 21, 2012 · Viewed 10.3k times · Source

I'd like to add a column to my custom post type admin window to display my custom taxonomy.

This solution provided by @SarthakGupta creates the column for me but echoes neither the taxonomy nor the "No taxonomy set" message: Showing custom taxonomy column in custom posts type listings

I've seen similar solutions posted elsewhere, with similar complaints about the empty taxonomy column.

What could be causing the problem? Is it possible this solution does not work with WordPress 3.3?

Thanks.

Answer

Luko Del Ponte picture Luko Del Ponte · Apr 30, 2013

From Wordpress 3.5 you can enable it when you registering custom taxonomy by adding this:

'show_ui'           => true,
'show_admin_column' => true,