Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Featured Clients

if ( ! function_exists('pb_register_cpt_clients') ) {

// Register Custom Post Type
function pb_register_cpt_clients() {

	$labels = array(
		'name'                  => 'Featured Clients',
		'singular_name'         => 'Featured Client',
		'menu_name'             => 'Featured Clients',
		'name_admin_bar'        => 'Featured Client',
		'archives'              => 'Featured Client Archives',
		'parent_item_colon'     => 'Parent Item:',
		'all_items'             => 'All Featured Clients',
		'add_new_item'          => 'Add New Featured Client',
		'add_new'               => 'Add New Featured Client',
		'new_item'              => 'Add New Featured Client',
		'edit_item'             => 'Edit Featured Client',
		'update_item'           => 'Update Featured Client',
		'view_item'             => 'View Featured Client',
		'search_items'          => 'Search Featured Clients',
		'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 item',
		'uploaded_to_this_item' => 'Uploaded to this item',
		'items_list'            => 'Items list',
		'items_list_navigation' => 'Items list navigation',
		'filter_items_list'     => 'Filter items list',
	);
	$rewrite = array(
		'slug'                  => 'featured_clients',
		'with_front'            => true,
		'pages'                 => false,
		'feeds'                 => false,
	);
	$args = array(
		'label'                 => 'Featured Client',
		'description'           => 'Custom post type for Featured Clients. This is a default plugin that must be used as part of the sites functionality. Removing or turning this plugin off will effect your ability to edit and display featured clients on your site. It can be used with any WordPress theme as long as this plugin is active.',
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'revisions', 'custom-fields', ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-id-alt',
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => true,
		'can_export'            => true,
		'has_archive'           => false,		
		'exclude_from_search'   => true,
		'publicly_queryable'    => true,
		'rewrite'               => $rewrite,
		'capability_type'       => 'page',
	);
	register_post_type( 'pb_featured_clients', $args );

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

}