Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

coworker modo

// Register Custom Post Type
function custom_post_type() {

	$labels = array(
		'name'                => _x( 'Coworkers', 'Post Type General Name', 'text_domain' ),
		'singular_name'       => _x( 'Coworker', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'           => __( 'Coworkers', 'text_domain' ),
		'name_admin_bar'      => __( 'COW', 'text_domain' ),
		'parent_item_colon'   => __( 'Coworkers', 'text_domain' ),
		'all_items'           => __( 'Tutti i coworkers', 'text_domain' ),
		'add_new_item'        => __( 'Aggiungi un coworker', 'text_domain' ),
		'add_new'             => __( 'Aggiungi nuovo', 'text_domain' ),
		'new_item'            => __( 'Nuovo Coworker', 'text_domain' ),
		'edit_item'           => __( 'Modifica Coworker', 'text_domain' ),
		'update_item'         => __( 'Aggiorna Coworker', 'text_domain' ),
		'view_item'           => __( 'Guarda Coworker', 'text_domain' ),
		'search_items'        => __( 'Cerca tra i Coworker', 'text_domain' ),
		'not_found'           => __( 'Nessun risultato', 'text_domain' ),
		'not_found_in_trash'  => __( 'Nessun risultato nel cestino', 'text_domain' ),
	);
	$args = array(
		'label'               => __( 'post_type', 'text_domain' ),
		'description'         => __( 'Coworker gruppo Mod-o', 'text_domain' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'excerpt', 'thumbnail', 'page-attributes', 'post-formats', ),
		'taxonomies'          => array( 'category', 'post_tag' ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 5,
		'menu_icon'           => 'http://mod-o.claimadv.it/wp-content/themes/soho/img/coworking.png',
		'show_in_admin_bar'   => true,
		'show_in_nav_menus'   => true,
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => true,
		'publicly_queryable'  => true,
		'capability_type'     => 'page',
	);
	register_post_type( 'post_type', $args );

}

// Hook into the 'init' action
add_action( 'init', 'custom_post_type', 0 );