banner
Para crear banners
if ( ! function_exists('banners_post_type') ) { // Register Custom Post Type function banners_post_type() { $labels = array( 'name' => _x( 'Banners', 'Post Type General Name', 'sono' ), 'singular_name' => _x( 'Banner', 'Post Type Singular Name', 'sono' ), 'menu_name' => __( 'Banners', 'sono' ), 'parent_item_colon' => __( 'Superios', 'sono' ), 'all_items' => __( 'Todos', 'sono' ), 'view_item' => __( 'Ver banner', 'sono' ), 'add_new_item' => __( 'Nuevo banner', 'sono' ), 'add_new' => __( 'Agregar nuevo', 'sono' ), 'edit_item' => __( 'Editar banner', 'sono' ), 'update_item' => __( 'Actualizar banner', 'sono' ), 'search_items' => __( 'Buscar banner', 'sono' ), 'not_found' => __( 'No se han encontrado banner', 'sono' ), 'not_found_in_trash' => __( 'No hay banner en la papelera', 'sono' ), ); $args = array( 'label' => __( 'Banners', 'sono' ), 'description' => __( 'Catálogo de banners', 'sono' ), 'labels' => $labels, 'supports' => array( 'title', 'thumbnail', 'custom-fields', 'page-attributes', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => false, 'show_in_admin_bar' => false, 'menu_position' => 5, 'menu_icon' => '', 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => true, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'Banners', $args ); } // Hook into the 'init' action add_action( 'init', 'banners_post_type', 0 ); }