Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Bee

if ( ! function_exists('beekeeping_post_type') ) {

// Register Custom Post Type
function beekeeping_post_type() {

	$labels = array(
		'name'                  => _x( 'Bee services', 'Post Type General Name', 'panoramic-child' ),
		'singular_name'         => _x( 'Bee service', 'Post Type Singular Name', 'panoramic-child' ),
		'menu_name'             => __( 'Bee services', 'panoramic-child' ),
		'name_admin_bar'        => __( 'Post Type', 'panoramic-child' ),
		'archives'              => __( 'Bee service Archives', 'panoramic-child' ),
		'attributes'            => __( 'Bee service Attributes', 'panoramic-child' ),
		'parent_item_colon'     => __( '', 'panoramic-child' ),
		'all_items'             => __( 'All Bee services', 'panoramic-child' ),
		'add_new_item'          => __( 'Add New Bee service', 'panoramic-child' ),
		'add_new'               => __( 'Add New Bee service', 'panoramic-child' ),
		'new_item'              => __( 'New Bee service', 'panoramic-child' ),
		'edit_item'             => __( 'Edit Bee service', 'panoramic-child' ),
		'update_item'           => __( 'Update Bee service', 'panoramic-child' ),
		'view_item'             => __( 'View Bee service', 'panoramic-child' ),
		'view_items'            => __( 'View Bee services', 'panoramic-child' ),
		'search_items'          => __( 'Search Bee service', 'panoramic-child' ),
		'not_found'             => __( 'Not found', 'panoramic-child' ),
		'not_found_in_trash'    => __( 'Not found in Trash', 'panoramic-child' ),
		'featured_image'        => __( 'Featured Image', 'panoramic-child' ),
		'set_featured_image'    => __( 'Set featured image', 'panoramic-child' ),
		'remove_featured_image' => __( 'Remove featured image', 'panoramic-child' ),
		'use_featured_image'    => __( 'Use as featured image', 'panoramic-child' ),
		'insert_into_item'      => __( 'Insert into Bee service', 'panoramic-child' ),
		'uploaded_to_this_item' => __( 'Uploaded to this Bee service', 'panoramic-child' ),
		'items_list'            => __( 'Bee services list', 'panoramic-child' ),
		'items_list_navigation' => __( 'Bee services list navigation', 'panoramic-child' ),
		'filter_items_list'     => __( 'Filter Bee services list', 'panoramic-child' ),
	);
	$args = array(
		'label'                 => __( 'Bee service', 'panoramic-child' ),
		'description'           => __( 'Bee service post type', 'panoramic-child' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'author', 'thumbnail', ),
		'taxonomies'            => array( 'category', 'post_tag' ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-tickets-alt',
		'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( 'beekeeping', $args );

}
add_action( 'init', 'beekeeping_post_type', 0 );

}