• Hi, guys – I’ve registered custom columns for my custom post type, but the same columns are replacing the columns in my custom taxonomy screen. How can I specify that I want my custom columns to appear ONLY on the edit.php page and not the edit-tags.php page?

    function add_new_contact_columns($contact_columns) {
    		$new_columns['cb'] = '<input type="checkbox" />';
    
    		$new_columns['image'] = _x('', 'column name');
    		$new_columns['title'] = _x('Contact Name', 'column name');
    		$new_columns['recrm_firstname'] = __('First Name');
    		$new_columns['primary_phone'] = __('Primary Phone');
     		$new_columns['e-mail'] = __('E-Mail');
     		$new_columns['priority'] = __('Priority');
     		$new_columns['contacttype'] = __('Type');
    		$new_columns['author'] = __('Assigned To');
    		return $new_columns;
    	}
    
    add_action('manage_contact_posts_custom_column', 'manage_contact_columns', 10, 2);
    
    // Gets the meta data for each column type and populates the actual data
    function manage_contact_columns($column_name, $id) {
    		global $post;
    		switch ($column_name) {
    *a bunch of switches, removed for forum readabililty*
    } // end switch
    	}
  • The topic ‘CPT custom columns also appear in the custom taxonomy screen?’ is closed to new replies.