Destinations
Destinations for travel in the USA for FrugalTraveler.us.
// Register Custom Post Type
function destination_local() {
$labels = array(
'name' => 'Destinations',
'singular_name' => 'Destination',
'menu_name' => 'Destinations',
'name_admin_bar' => 'Destinations',
'archives' => 'Destination Archives',
'parent_item_colon' => 'Parent Destination:',
'all_items' => 'All Destinations',
'add_new_item' => 'Add New Destination',
'add_new' => 'Add Destination',
'new_item' => 'New Destination',
'edit_item' => 'Edit Destination',
'update_item' => 'Update Destination',
'view_item' => 'View Destination',
'search_items' => 'Search Destination',
'not_found' => 'Not found',
'not_found_in_trash' => 'Not found in Trash',
'featured_image' => 'Featured Image',
'set_featured_image' => 'Set featured image',
'remove_featured_image' => 'Remove featured image',
'use_featured_image' => 'Use as featured image',
'insert_into_item' => 'Insert into Destination',
'uploaded_to_this_item' => 'Uploaded to this Destination',
'items_list' => 'Destination list',
'items_list_navigation' => 'Destinations list navigation',
'filter_items_list' => 'Filter Destinations list',
);
$args = array(
'label' => 'Destination',
'description' => 'Destinations FrugalTraveler.us sell travel deals to.',
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'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( 'destinations', $args );
}
add_action( 'init', 'destination_local', 0 );