CPT Doctor Locations
// Register Custom Post Type
function register_cpt_doctor_locations() {
$labels = array(
'name' => _x( 'Doctor Locations', 'Post Type General Name', 'genesis' ),
'singular_name' => _x( 'Doctor Location', 'Post Type Singular Name', 'genesis' ),
'menu_name' => __( 'Doctor Locations', 'genesis' ),
'name_admin_bar' => __( 'Doctor Locations', 'genesis' ),
'archives' => __( 'Doctor Location Archives', 'genesis' ),
'attributes' => __( 'Doctor Location Attributes', 'genesis' ),
'parent_item_colon' => __( 'Parent Doctor Location:', 'genesis' ),
'all_items' => __( 'All Doctor Locations', 'genesis' ),
'add_new_item' => __( 'Add New Doctor Location', 'genesis' ),
'add_new' => __( 'Add New', 'genesis' ),
'new_item' => __( 'New Doctor Location', 'genesis' ),
'edit_item' => __( 'Edit Doctor Location', 'genesis' ),
'update_item' => __( 'Update Doctor Location', 'genesis' ),
'view_item' => __( 'View Doctor Location', 'genesis' ),
'view_items' => __( 'View Doctor Locations', 'genesis' ),
'search_items' => __( 'Search Doctor Location', 'genesis' ),
'not_found' => __( 'Not found', 'genesis' ),
'not_found_in_trash' => __( 'Not found in Trash', 'genesis' ),
'featured_image' => __( 'Featured Image', 'genesis' ),
'set_featured_image' => __( 'Set featured image', 'genesis' ),
'remove_featured_image' => __( 'Remove featured image', 'genesis' ),
'use_featured_image' => __( 'Use as featured image', 'genesis' ),
'insert_into_item' => __( 'Insert into item', 'genesis' ),
'uploaded_to_this_item' => __( 'Uploaded to this Doctor Location', 'genesis' ),
'items_list' => __( 'Doctor Locations list', 'genesis' ),
'items_list_navigation' => __( 'Doctor Locations list navigation', 'genesis' ),
'filter_items_list' => __( 'Filter Doctor Locations list', 'genesis' ),
);
$args = array(
'label' => __( 'Doctor Location', 'genesis' ),
'description' => __( 'Doctor Locations', 'genesis' ),
'labels' => $labels,
'supports' => array( 'title', ),
'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( 'doctor-locations', $args );
}
add_action( 'init', 'register_cpt_doctor_locations', 0 );