Destinations
LVS Destination
// Register Custom Post Type function destinations_post_type() { $labels = array( 'name' => _x( 'Destinations', 'Post Type General Name', 'destinations_domain' ), 'singular_name' => _x( 'Destination', 'Post Type Singular Name', 'destinations_domain' ), 'menu_name' => __( 'Destinations', 'destinations_domain' ), 'name_admin_bar' => __( 'Destinations', 'destinations_domain' ), 'parent_item_colon' => __( 'Parent Destination:', 'destinations_domain' ), 'all_items' => __( 'All Destinations', 'destinations_domain' ), 'add_new_item' => __( 'Add New Destination', 'destinations_domain' ), 'add_new' => __( 'New Destination', 'destinations_domain' ), 'new_item' => __( 'New Destination', 'destinations_domain' ), 'edit_item' => __( 'Edit Destination', 'destinations_domain' ), 'update_item' => __( 'Update Destination', 'destinations_domain' ), 'view_item' => __( 'View Destination', 'destinations_domain' ), 'search_items' => __( 'Search Destination', 'destinations_domain' ), 'not_found' => __( 'Not found', 'destinations_domain' ), 'not_found_in_trash' => __( 'Not found in Trash', 'destinations_domain' ), ); $rewrite = array( 'slug' => 'destinations', 'with_front' => true, 'pages' => false, 'feeds' => true, ); $args = array( 'label' => __( 'destinations', 'destinations_domain' ), 'description' => __( 'Destinations info', 'destinations_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'custom-fields', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-admin-site', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'destinations', $args ); } // Hook into the 'init' action add_action( 'init', 'destinations_post_type', 0 );