// Register Custom Post Type function windsurf_eventi() { $labels = array( 'name' => _x( 'eventi', 'Post Type General Name', 'windsurf' ), 'singular_name' => _x( 'evento', 'Post Type Singular Name', 'windsurf' ), 'menu_name' => __( 'Eventi', 'windsurf' ), 'name_admin_bar' => __( 'Eventi', 'windsurf' ), 'archives' => __( 'Archivio eventi', 'windsurf' ), 'attributes' => __( 'Attributi evento', 'windsurf' ), 'parent_item_colon' => __( 'Eventi padre', 'windsurf' ), 'all_items' => __( 'Tutti gli eventi', 'windsurf' ), 'add_new_item' => __( 'Aggiungi evento', 'windsurf' ), 'add_new' => __( 'Aggiungi nuovo', 'windsurf' ), 'new_item' => __( 'Nuovo evento', 'windsurf' ), 'edit_item' => __( 'edita evento', 'windsurf' ), 'update_item' => __( 'aggiorna evento', 'windsurf' ), 'view_item' => __( 'Visualizza evento', 'windsurf' ), 'view_items' => __( 'Visualizza eventi', 'windsurf' ), 'search_items' => __( 'Cerca evento', 'windsurf' ), 'not_found' => __( 'Non trovato', 'windsurf' ), 'not_found_in_trash' => __( 'Non presente nel cestino', 'windsurf' ), 'featured_image' => __( 'Immagine in evidenza', 'windsurf' ), 'set_featured_image' => __( 'Configura img in evidenza', 'windsurf' ), 'remove_featured_image' => __( 'Rimuovi img in evidenza', 'windsurf' ), 'use_featured_image' => __( 'Utilizza img in evidenza', 'windsurf' ), 'insert_into_item' => __( 'Aggiungi evento', 'windsurf' ), 'uploaded_to_this_item' => __( 'Aggiorna evento', 'windsurf' ), 'items_list' => __( 'Lista eventi', 'windsurf' ), 'items_list_navigation' => __( 'Navigazione lista eventi', 'windsurf' ), 'filter_items_list' => __( 'Filtro lista eventi', 'windsurf' ), ); $args = array( 'label' => __( 'evento', 'windsurf' ), 'description' => __( 'Eventi di windsurf', 'windsurf' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-calendar-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( 'eventi', $args ); } add_action( 'init', 'windsurf_eventi', 0 );