landing pages
// Register Custom Post Type
function landing() {
$labels = array(
'name' => _x( 'Landing pages', 'Post Type General Name', 'text_domain' ),
'singular_name' => _x( 'Landing page', 'Post Type Singular Name', 'text_domain' ),
'menu_name' => __( 'Landing pages', 'text_domain' ),
'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),
'all_items' => __( 'Elenco', 'text_domain' ),
'view_item' => __( 'Vedi', 'text_domain' ),
'add_new_item' => __( 'Nuova', 'text_domain' ),
'add_new' => __( 'Nuova', 'text_domain' ),
'edit_item' => __( 'Modifica', 'text_domain' ),
'update_item' => __( 'Aggiorna', 'text_domain' ),
'search_items' => __( 'Cerca', 'text_domain' ),
'not_found' => __( 'Non trovata', 'text_domain' ),
'not_found_in_trash' => __( 'Non trovata nel cestino', 'text_domain' ),
);
$args = array(
'labels' => $labels,
'supports' => array( 'title', 'editor', 'revisions', 'custom-fields', 'page-attributes', 'post-formats', ),
'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( 'landing', $args );
}
// Hook into the 'init' action
add_action( 'init', 'landing', 0 );