Gill_Clients
// Register Custom Post Type
function cpt_clients() {
$labels = array(
'name' => _x( 'Clients', 'Post Type General Name', 'gill' ),
'singular_name' => _x( 'Client', 'Post Type Singular Name', 'gill' ),
'menu_name' => __( 'Kunden', 'gill' ),
'name_admin_bar' => __( 'KundenPost Type', 'gill' ),
'archives' => __( 'Kunden Archiv', 'gill' ),
'attributes' => __( 'Kunden Attribute', 'gill' ),
'parent_item_colon' => __( '', 'gill' ),
'all_items' => __( 'Alle Kunden', 'gill' ),
'add_new_item' => __( 'Neuen Kunden anlegen', 'gill' ),
'add_new' => __( 'Neu', 'gill' ),
'new_item' => __( 'Neuer Eintrag', 'gill' ),
'edit_item' => __( 'Kunden bearbeiten', 'gill' ),
'update_item' => __( 'Kunden updaten', 'gill' ),
'view_item' => __( 'Kunden ansehen', 'gill' ),
'view_items' => __( 'Kunden ansehen', 'gill' ),
'search_items' => __( 'Kunden durchsuchen', 'gill' ),
'not_found' => __( 'Not found', 'gill' ),
'not_found_in_trash' => __( 'Not found in Trash', 'gill' ),
'featured_image' => __( 'Featured Image', 'gill' ),
'set_featured_image' => __( 'Set featured image', 'gill' ),
'remove_featured_image' => __( 'Remove featured image', 'gill' ),
'use_featured_image' => __( 'Use as featured image', 'gill' ),
'insert_into_item' => __( 'Insert into item', 'gill' ),
'uploaded_to_this_item' => __( 'Uploaded to this item', 'gill' ),
'items_list' => __( 'Items list', 'gill' ),
'items_list_navigation' => __( 'Items list navigation', 'gill' ),
'filter_items_list' => __( 'Filter items list', 'gill' ),
);
$args = array(
'label' => __( 'Client', 'gill' ),
'description' => __( 'Client Logos / Addresses', 'gill' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-businessperson',
'show_in_admin_bar' => false,
'show_in_nav_menus' => true,
'can_export' => false,
'has_archive' => false,
'exclude_from_search' => true,
'publicly_queryable' => true,
'capability_type' => 'page',
'show_in_rest' => true,
);
register_post_type( 'cpt_clients', $args );
}
add_action( 'init', 'cpt_clients', 0 );