Types - Custom Fields and Custom Post Types Management
Showing taxonomies in admin columns? (7 posts)

  1. Eric
    Posted 1 year ago #

    I'd like to be able to show taxonomies created with Types in the columns of post_types in the WP admin. This is something facilitated by show_admin_column since WP 3.5, but Types does not seem to have a corresponding option.

    Would you consider adding one? Or suggest an alternative?


  2. Eric
    Posted 1 year ago #

    An option would still be nice, but here is a good workaround.

    If I have a custom taxonomy called pubtype that I want to see as a column on my custom post type called publication I can include the following in my functions.php file:

    add_filter( 'manage_taxonomies_for_publication_columns', 'my_publication_columns' );
    function my_publication_columns( $taxonomies ) {
        $taxonomies[] = 'pubtype';
        return $taxonomies;

    Note the filter's name is manage_taxonomies_for_{$post_type}_columns.

  3. Srdjan
    Plugin Author

    Posted 1 year ago #

    We'll include this addition in one of upcoming releases.

  4. Eric
    Posted 1 year ago #

    Great! Looking forward to it. Thanks.

  5. Dave Navarro, Jr.
    Posted 1 year ago #

    I have been a long time user of Pippin's "Easy Content Types" and since he is no longer developing it, I've been looking for something that is still being developed and an author willing to consider new functionality.

    This post pleases me greatly.

    When creating a new taxonomy, would it be possible to create an option for "include in Admin Display List"?

  6. MCM
    Posted 1 year ago #

    Any ETA on this feature yet please?

  7. MCM
    Posted 1 year ago #

    Here is some code for filtering

    add_action( 'restrict_manage_posts', 'my_filter_list' );
    function my_filter_list() {
        $screen = get_current_screen();
        global $wp_query;
        if ( $screen->post_type == 'CPT NAME HERE' ) {
            wp_dropdown_categories( array(
                'show_option_all' => 'Show All CTAX NAME HERE',
                'taxonomy' => 'CTAX HERE',
                'name' => 'CTAX HERE',
                'orderby' => 'name',
                'selected' => ( isset( $wp_query->query['CTAX HERE'] ) ? $wp_query->query['speaker'] : '' ),
                'hierarchical' => false,
                'depth' => 3,
                'show_count' => false,
                'hide_empty' => true,
            ) );
    add_filter( 'parse_query','perform_filtering' );
    function perform_filtering( $query ) {
        $qv = &$query->query_vars;
        if ( ( $qv['CTAX HERE'] ) && is_numeric( $qv['CTAX HERE'] ) ) {
            $term = get_term_by( 'id', $qv['CTAX HERE'], 'CTAX HERE' );
            $qv['CTAX HERE'] = $term->slug;

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic