SnowGoer Sleds CPT
CPT for sleds post type.
if ( ! function_exists('SNG_CPT_Sleds') ) { // Register Custom Post Type function SNG_CPT_Sleds() { $labels = array( 'name' => 'Snowmobiles', 'singular_name' => 'Snowmobile', 'menu_name' => 'Sleds', 'name_admin_bar' => 'Sleds', 'parent_item_colon' => 'Parent Item:', 'all_items' => 'All Snowmobiles', 'add_new_item' => 'Add New Snowmobile', 'add_new' => 'Add New', 'new_item' => 'New Snowmobile', 'edit_item' => 'Edit Snowmobile', 'update_item' => 'Update Snowmobile', 'view_item' => 'View Snowmobile', 'search_items' => 'Search Snowmobiles', 'not_found' => 'Not found', 'not_found_in_trash' => 'Not found in Trash', ); $args = array( 'label' => 'snowmobiles', 'description' => 'Snowmobile database', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'comments', 'revisions', '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-page', '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' => 'post', ); register_post_type( 'snowmobiles', $args ); } // Hook into the 'init' action add_action( 'init', 'SNG_CPT_Sleds', 0 ); }