Cartas post type
Soux-Calvo
// Register Custom Post Type
function cartas_post_type() {
$labels = array(
'name' => _x( 'Cartas', 'Post Type General Name', 'soux' ),
'singular_name' => _x( 'Carta', 'Post Type Singular Name', 'soux' ),
'menu_name' => __( 'Cartas', 'soux' ),
'name_admin_bar' => __( 'Carta', 'soux' ),
'archives' => __( 'Archivo de cartas', 'soux' ),
'attributes' => __( 'Atributos de cartas', 'soux' ),
'parent_item_colon' => __( 'Carta padre:', 'soux' ),
'all_items' => __( 'Todas las cartas', 'soux' ),
'add_new_item' => __( 'Añadir nueva carta', 'soux' ),
'add_new' => __( 'Añadir nueva', 'soux' ),
'new_item' => __( 'Nueva carta', 'soux' ),
'edit_item' => __( 'Editar carta', 'soux' ),
'update_item' => __( 'Actualizar carta', 'soux' ),
'view_item' => __( 'Ver carta', 'soux' ),
'view_items' => __( 'Ver cartas', 'soux' ),
'search_items' => __( 'Buscar carta', 'soux' ),
'not_found' => __( 'Not found', 'soux' ),
'not_found_in_trash' => __( 'Not found in Trash', 'soux' ),
'featured_image' => __( 'Featured Image', 'soux' ),
'set_featured_image' => __( 'Set featured image', 'soux' ),
'remove_featured_image' => __( 'Remove featured image', 'soux' ),
'use_featured_image' => __( 'Use as featured image', 'soux' ),
'insert_into_item' => __( 'Insertar en la carta', 'soux' ),
'uploaded_to_this_item' => __( 'Uploaded to this item', 'soux' ),
'items_list' => __( 'Items list', 'soux' ),
'items_list_navigation' => __( 'Items list navigation', 'soux' ),
'filter_items_list' => __( 'Filter items list', 'soux' ),
);
$args = array(
'label' => __( 'Carta', 'soux' ),
'description' => __( 'Correspondecia de la famila Soux Calvo', 'soux' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ),
'taxonomies' => array( 'category', 'post_tag', ' personas' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-email-alt',
'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( 'carta', $args );
}
add_action( 'init', 'cartas_post_type', 0 );