Hospitales
Agrega hospitales
if ( ! function_exists('mapfrecr_hospitales_post_type') ) { // Register Custom Post Type function mapfrecr_hospitales_post_type() { $labels = array( 'name' => _x( 'Hospitales', 'Post Type General Name', 'mapfrecr' ), 'singular_name' => _x( 'Hospital', 'Post Type Singular Name', 'mapfrecr' ), 'menu_name' => __( 'Hospitales', 'mapfrecr' ), 'parent_item_colon' => __( 'Superior:', 'mapfrecr' ), 'all_items' => __( 'Todos los Hospitales', 'mapfrecr' ), 'view_item' => __( 'Ver Hospital', 'mapfrecr' ), 'add_new_item' => __( 'Agregar nuevo Hospital', 'mapfrecr' ), 'add_new' => __( 'Agregar nuevo', 'mapfrecr' ), 'edit_item' => __( 'Editar Hospital', 'mapfrecr' ), 'update_item' => __( 'Actualizar Hospital', 'mapfrecr' ), 'search_items' => __( 'Buscar Hospital', 'mapfrecr' ), 'not_found' => __( 'No se han encontrado resultados', 'mapfrecr' ), 'not_found_in_trash' => __( 'No hay Hospitales en la papelera', 'mapfrecr' ), ); $args = array( 'label' => __( 'Hospitales', 'mapfrecr' ), 'description' => __( 'Lista de Hospitales', 'mapfrecr' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes', 'post-formats', ), 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 20, 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'Hospitales', $args ); } // Hook into the 'init' action add_action( 'init', 'mapfrecr_hospitales_post_type', 0 ); }