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