Support » Plugin: Toolset Types - Custom Post Types, Custom Fields and Taxonomies » Showing taxonomies in admin columns?

  • Eric


    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?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Eric


    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.



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



    Great! Looking forward to it. Thanks.

    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”?

    Any ETA on this feature yet please?

    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;
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Showing taxonomies in admin columns?’ is closed to new replies.