Hi all,
Most of the site need multiple post types, and there is lot of plugin available but that plugin reduce your page speed,
here is the source code for custom post type
function custom_post_integrations() {
$labels = array(
'name' => _x( 'Integrations', 'post type general name' ),
'singular_name' => _x( 'Integrations', 'post type singular name' ),
'add_new' => _x( 'Add New', 'book' ),
'add_new_item' => __( 'Add New Integrations' ),
'edit_item' => __( 'Edit Integrations' ),
'new_item' => __( 'New Integrations' ),
'all_items' => __( 'All Integrations' ),
'view_item' => __( 'View Integrations' ),
'search_items' => __( 'Search Integrations' ),
'not_found' => __( 'No client found' ),
'not_found_in_trash' => __( 'No client found in the Trash' ),
'parent_item_colon' => '',
'menu_name' => 'Integrations'
);
$args = array(
'labels' => $labels,
'description' => 'Holds our integrations and integrations specific data',
'public' => true,
'menu_position' => 5,
'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ),
'has_archive' => true,
);
register_post_type( 'integrations', $args );
}
add_action( 'init', 'custom_post_integrations' );