Using the following snippet, you will be able to create custom terms admin column in WordPress.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | // for pages add_filter('manage_pages_columns', 'term_columns_id', 5); add_action('manage_pages_custom_column', 'term_custom_id_columns', 5, 2); // for posts add_filter('manage_posts_columns', 'term_columns_id', 5); add_action('manage_posts_custom_column', 'term_custom_id_columns', 5, 2); function term_columns_id($defaults){ $defaults['wps_post_type'] = __('Term'); return $defaults; } function term_custom_id_columns($column_name, $id){ if($column_name === 'wps_post_type'){ echo the_terms( $id, 'TERM_NAME', '', ', ' ); } } |
Snippet Source/Credit: WP-Snipp