colture
// Register Custom Post Type
function custom_post_type_coltura() {
$labels = array(
'name' => _x( 'Colture', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Coltura', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Colture', 'text_domain' ),
'parent_item_colon' => __( 'Genitore', 'text_domain' ),
'all_items' => __( 'Tutti', 'text_domain' ),
'view_item' => __( 'Visualizza', 'text_domain' ),
'add_new_item' => __( 'Nuovo', 'text_domain' ),
'add_new' => __( 'Nuovo', 'text_domain' ),
'edit_item' => __( 'Modifica', 'text_domain' ),
'update_item' => __( 'Aggiorna', 'text_domain' ),
'search_items' => __( 'Cerca', 'text_domain' ),
'not_found' => __( 'Non trovato', 'text_domain' ),
'not_found_in_trash' => __( 'Non trovato', 'text_domain' ),
);
$args = array(
'label' => __( 'coltura', 'text_domain' ),
'description' => __( 'Post Type Description', 'text_domain' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 60,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'coltura', $args );
}
// Hook into the 'init' action
add_action( 'init', 'custom_post_type_coltura', 0 );