Remix
// Register Custom Post Type
function remixes_post_type() {
$labels = array(
'name' => _x( 'Remixes', 'Post Type General Name', 'remixes_domain' ),
'singular_name' => _x( 'Remix', 'Post Type Singular Name', 'remixes_domain' ),
'menu_name' => __( 'Remixes', 'remixes_domain' ),
'name_admin_bar' => __( 'Remixs', 'remixes_domain' ),
'archives' => __( 'Archivo Remix', 'remixes_domain' ),
'attributes' => __( 'Atributos Remix', 'remixes_domain' ),
'parent_item_colon' => __( 'Padre Remix', 'remixes_domain' ),
'all_items' => __( 'Todos Los Remixes', 'remixes_domain' ),
'add_new_item' => __( 'Nuevo Remix', 'remixes_domain' ),
'add_new' => __( 'Nuevo Remix', 'remixes_domain' ),
'new_item' => __( 'Nuevo Remix', 'remixes_domain' ),
'edit_item' => __( 'Editar', 'remixes_domain' ),
'update_item' => __( 'Actualizar', 'remixes_domain' ),
'view_item' => __( 'Ver', 'remixes_domain' ),
'view_items' => __( 'Ver Remix', 'remixes_domain' ),
'search_items' => __( 'Buscar Remixes', 'remixes_domain' ),
'not_found' => __( 'No se encontraron remixes', 'remixes_domain' ),
'not_found_in_trash' => __( 'No se encontraron remixes en la basura', 'remixes_domain' ),
'featured_image' => __( 'Cover Remix', 'remixes_domain' ),
'set_featured_image' => __( 'Establecer Cover', 'remixes_domain' ),
'remove_featured_image' => __( 'Eliminar', 'remixes_domain' ),
'use_featured_image' => __( 'Usar Cover', 'remixes_domain' ),
'insert_into_item' => __( 'Insertar', 'remixes_domain' ),
'uploaded_to_this_item' => __( 'Subido a este', 'remixes_domain' ),
'items_list' => __( 'Lista de items', 'remixes_domain' ),
'items_list_navigation' => __( 'Navegacion de items', 'remixes_domain' ),
'filter_items_list' => __( 'Filtrar Remixes', 'remixes_domain' ),
);
$rewrite = array(
'slug' => 'remix',
'with_front' => true,
'pages' => true,
'feeds' => true,
);
$args = array(
'label' => __( 'Remix', 'remixes_domain' ),
'description' => __( 'Archivo Demo', 'remixes_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'trackbacks', 'custom-fields', 'page-attributes' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-media-audio',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'rewrite' => $rewrite,
'capability_type' => 'page',
);
register_post_type( 'remix', $args );
}
add_action( 'init', 'remixes_post_type', 0 );