// Register Custom Post Type function home_page_slider() { $labels = array( 'name' => _x( 'Imagenes', 'Post Type General Name', 'sermulsa_theme' ), 'singular_name' => _x( 'Imagen', 'Post Type Singular Name', 'sermulsa_theme' ), 'menu_name' => __( 'Slideshow', 'sermulsa_theme' ), 'name_admin_bar' => __( 'Post Type', 'sermulsa_theme' ), 'archives' => __( 'Item Archives', 'sermulsa_theme' ), 'attributes' => __( 'Item Attributes', 'sermulsa_theme' ), 'parent_item_colon' => __( 'Parent Item:', 'sermulsa_theme' ), 'all_items' => __( 'Todas las Fotos', 'sermulsa_theme' ), 'add_new_item' => __( 'Añadir Foto', 'sermulsa_theme' ), 'add_new' => __( 'Añadir Nuevo', 'sermulsa_theme' ), 'new_item' => __( 'New Item', 'sermulsa_theme' ), 'edit_item' => __( 'Editar Foto', 'sermulsa_theme' ), 'update_item' => __( 'Actualizar Foto', 'sermulsa_theme' ), 'view_item' => __( 'View Item', 'sermulsa_theme' ), 'view_items' => __( 'View Items', 'sermulsa_theme' ), 'search_items' => __( 'Buscar Foto', 'sermulsa_theme' ), 'not_found' => __( 'Not found', 'sermulsa_theme' ), 'not_found_in_trash' => __( 'Not found in Trash', 'sermulsa_theme' ), 'featured_image' => __( 'Featured Image', 'sermulsa_theme' ), 'set_featured_image' => __( 'Set featured image', 'sermulsa_theme' ), 'remove_featured_image' => __( 'Remove featured image', 'sermulsa_theme' ), 'use_featured_image' => __( 'Use as featured image', 'sermulsa_theme' ), 'insert_into_item' => __( 'Insert into item', 'sermulsa_theme' ), 'uploaded_to_this_item' => __( 'Uploaded to this item', 'sermulsa_theme' ), 'items_list' => __( 'Items list', 'sermulsa_theme' ), 'items_list_navigation' => __( 'Items list navigation', 'sermulsa_theme' ), 'filter_items_list' => __( 'Filter items list', 'sermulsa_theme' ), ); $args = array( 'label' => __( 'Imagen', 'sermulsa_theme' ), 'description' => __( 'Fotos Pagina Principal', 'sermulsa_theme' ), 'labels' => $labels, 'supports' => array( 'title' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 20, 'menu_icon' => 'dashicons-format-image', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'home_slider', $args ); } add_action( 'init', 'home_page_slider', 0 );