Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Clients

// Register Custom Post Type
function qhc_clients() {

	$labels = array(
		'name'                  => _x( 'Clients', 'Post Type General Name', 'qh_cloud' ),
		'singular_name'         => _x( 'Client', 'Post Type Singular Name', 'qh_cloud' ),
		'menu_name'             => __( 'Clients', 'qh_cloud' ),
		'name_admin_bar'        => __( 'Client', 'qh_cloud' ),
		'archives'              => __( 'Client Archives', 'qh_cloud' ),
		'attributes'            => __( 'Client Attributes', 'qh_cloud' ),
		'parent_item_colon'     => __( 'Parent Client:', 'qh_cloud' ),
		'all_items'             => __( 'All Clients', 'qh_cloud' ),
		'add_new_item'          => __( 'Add New Client', 'qh_cloud' ),
		'add_new'               => __( 'Add Client', 'qh_cloud' ),
		'new_item'              => __( 'New Client', 'qh_cloud' ),
		'edit_item'             => __( 'Edit Client', 'qh_cloud' ),
		'update_item'           => __( 'Update Client', 'qh_cloud' ),
		'view_item'             => __( 'View Client', 'qh_cloud' ),
		'view_items'            => __( 'View Clients', 'qh_cloud' ),
		'search_items'          => __( 'Search Client', 'qh_cloud' ),
		'not_found'             => __( 'Not found', 'qh_cloud' ),
		'not_found_in_trash'    => __( 'Not found in Trash', 'qh_cloud' ),
		'featured_image'        => __( 'Client Logo', 'qh_cloud' ),
		'set_featured_image'    => __( 'Set Client Logo', 'qh_cloud' ),
		'remove_featured_image' => __( 'Remove Client Logo', 'qh_cloud' ),
		'use_featured_image'    => __( 'Use as Client Logo', 'qh_cloud' ),
		'insert_into_item'      => __( 'Insert into client', 'qh_cloud' ),
		'uploaded_to_this_item' => __( 'Uploaded to this item', 'qh_cloud' ),
		'items_list'            => __( 'Clients list', 'qh_cloud' ),
		'items_list_navigation' => __( 'Clients list navigation', 'qh_cloud' ),
		'filter_items_list'     => __( 'Filter clients list', 'qh_cloud' ),
	);
	$args = array(
		'label'                 => __( 'Client', 'qh_cloud' ),
		'description'           => __( 'Client Description', 'qh_cloud' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor' ),
		'taxonomies'            => array( 'category', 'post_tag' ),
		'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',
		'show_in_rest'          => true,
		'rest_base'             => 'qhc',
	);
	register_post_type( 'qhc_clients', $args );

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