$cb, 'location-id' => sprintf(__('%s ID','dbem'),__('Location','dbem'))); }else{ $id_array = array('location-id' => sprintf(__('%s ID','dbem'),__('Location','dbem'))); } unset($columns['author']); unset($columns['date']); unset($columns['comments']); return array_merge($id_array, $columns, array( 'address' => __('Address','dbem'), 'town' => __('Town','dbem'), 'state' => __('State','dbem'), 'country' => __('Country','dbem') )); } function columns_output( $column ) { global $post; $post = em_get_location($post); switch ( $column ) { case 'location-id': echo $post->location_id; break; case 'address': echo $post->location_address; break; case 'town': echo $post->location_town; break; case 'state': echo $post->location_state; break; case 'country': echo $post->location_country; break; } } } add_action('admin_init', array('EM_Location_Posts_Admin','init'));