homeSlider
custom post type para slider
// Register Custom Post Type function carousel_function() { $labels = array( 'name' => _x( 'Slider', 'Post Type General Name', 'comunidadmujer' ), 'singular_name' => _x( 'Slide', 'Post Type Singular Name', 'comunidadmujer' ), 'menu_name' => __( 'Slider Home', 'comunidadmujer' ), 'name_admin_bar' => __( 'Slider', 'comunidadmujer' ), 'archives' => __( 'Archivos slider', 'comunidadmujer' ), 'attributes' => __( 'Atributos del slide', 'comunidadmujer' ), 'parent_item_colon' => __( 'Parent Item:', 'comunidadmujer' ), 'all_items' => __( 'Todos los slides', 'comunidadmujer' ), 'add_new_item' => __( 'Agregar nuevo slide', 'comunidadmujer' ), 'add_new' => __( 'Agregar slider', 'comunidadmujer' ), 'new_item' => __( 'Nuevo slide', 'comunidadmujer' ), 'edit_item' => __( 'Editar slide', 'comunidadmujer' ), 'update_item' => __( 'Actualizar slide', 'comunidadmujer' ), 'view_item' => __( 'Ver slide', 'comunidadmujer' ), 'view_items' => __( 'Ver slider', 'comunidadmujer' ), 'search_items' => __( 'Buscar slide', 'comunidadmujer' ), 'not_found' => __( 'Not found', 'comunidadmujer' ), 'not_found_in_trash' => __( 'No encontrado en la Papelera', 'comunidadmujer' ), 'featured_image' => __( 'Imagen principal', 'comunidadmujer' ), 'set_featured_image' => __( 'Establecer imagen destacada', 'comunidadmujer' ), 'remove_featured_image' => __( 'Remover imagen destacada', 'comunidadmujer' ), 'use_featured_image' => __( 'Usar como imagen destacada', 'comunidadmujer' ), 'insert_into_item' => __( 'Insertar elemento', 'comunidadmujer' ), 'uploaded_to_this_item' => __( 'Uploaded to this item', 'comunidadmujer' ), 'items_list' => __( 'Items list', 'comunidadmujer' ), 'items_list_navigation' => __( 'Items list navigation', 'comunidadmujer' ), 'filter_items_list' => __( 'Filter items list', 'comunidadmujer' ), ); $args = array( 'label' => __( 'Slide', 'comunidadmujer' ), 'description' => __( 'Carousel front-page theme', 'comunidadmujer' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes', 'post-formats' ), 'taxonomies' => array( 'category', 'post_tag', '' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-slides', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => '', 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'post', ); register_post_type( 'carousel_home', $args ); } add_action( 'init', 'carousel_function', 0 );