Custom Post Type Dedication
Make a song dedication
// Register Custom Post Type function post_type_dedication() { $labels = array( 'name' => _x( 'Dedicatorias', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Dedicatoria', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Dedicatorias', 'text_domain' ), 'name_admin_bar' => __( 'Dedicatorias', 'text_domain' ), 'archives' => __( 'Archivo de Dedicatorias', 'text_domain' ), 'attributes' => __( 'Atributos de Dedicatorias', 'text_domain' ), 'parent_item_colon' => __( 'Parent Dedication:', 'text_domain' ), 'all_items' => __( 'Todas las Dedicatorias', 'text_domain' ), 'add_new_item' => __( 'Añadir Nueva Dedicatoria', 'text_domain' ), 'add_new' => __( 'Añadir nueva', 'text_domain' ), 'new_item' => __( 'Nueva Dedicatoria', 'text_domain' ), 'edit_item' => __( 'Editar Dedicatorias', 'text_domain' ), 'update_item' => __( 'Actualizar Dedicatoria', 'text_domain' ), 'view_item' => __( 'Ver Dedicatoria', 'text_domain' ), 'view_items' => __( 'Ver Dedicatorias', 'text_domain' ), 'search_items' => __( 'Search Dedicatoria', 'text_domain' ), 'not_found' => __( 'Not found', 'text_domain' ), 'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ), 'featured_image' => __( 'Featured Image', 'text_domain' ), 'set_featured_image' => __( 'Set featured image', 'text_domain' ), 'remove_featured_image' => __( 'Remove featured image', 'text_domain' ), 'use_featured_image' => __( 'Use as featured image', 'text_domain' ), 'insert_into_item' => __( 'Insertar en Dedicatoria', 'text_domain' ), 'uploaded_to_this_item' => __( 'Actualizar esta Dedicatoria', 'text_domain' ), 'items_list' => __( 'Lista de Dedicatorias', 'text_domain' ), 'items_list_navigation' => __( 'Lista de navegación de Dedicatorias', 'text_domain' ), 'filter_items_list' => __( 'Filtrar lista de Dedicatorias', 'text_domain' ), ); $args = array( 'label' => __( 'Dedicatoria', 'text_domain' ), 'description' => __( 'dedication for the dedication wall', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'comments', 'custom-fields' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-megaphone', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => false, 'has_archive' => 'Dedications', 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'post', 'show_in_rest' => true, ); register_post_type( 'dedication', $args ); } add_action( 'init', 'post_type_dedication', 0 );