'; } } if ($column_name == 'category') { $post_categories = get_the_terms($post_ID, 'twabc_category'); if ($post_categories) { $output = ''; foreach($post_categories as $cat){ $output .= $cat->name.', '; } echo trim($output, ', '); } else { echo 'No categories'; } } } add_filter('manage_twabc_posts_columns', 'twabc_columns_head'); add_action('manage_twabc_posts_custom_column', 'twabc_columns_content', 10, 2);