Custom post
// Register Custom Post Type
function servizi() {
$labels = array(
'name' => 'Servizi',
'singular_name' => 'Servizio',
'menu_name' => 'Servizi',
'name_admin_bar' => 'Servizi',
'parent_item_colon' => 'Genitore',
'all_items' => 'Tutti',
'add_new_item' => 'Aggiungi nuovo',
'add_new' => 'Aggiungi nuovo',
'new_item' => 'Nuovo',
'edit_item' => 'Modifica',
'update_item' => 'Aggiorna',
'view_item' => 'Visualizza',
'search_items' => 'Cerca',
'not_found' => 'Non trovato',
'not_found_in_trash' => 'Non trovato',
);
$args = array(
'label' => 'servizi',
'description' => 'Post Type Description',
'labels' => $labels,
'supports' => array( 'title', ),
'taxonomies' => array( 'servizi_cat' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-admin-media',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'servizi', $args );
}
// Hook into the 'init' action
add_action( 'init', 'servizi', 0 );