Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

post type parceiros

// Register Custom Post Type
function canal_parceiro_post_type() {

	$labels = array(
		'name'                => _x( 'Canais Parceiros', 'Post Type General Name', 'text_domain' ),
		'singular_name'       => _x( 'Canal Parceiro', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'           => __( 'Canal Parceiro', 'text_domain' ),
		'name_admin_bar'      => __( 'Canal Parceiro', 'text_domain' ),
		'parent_item_colon'   => __( 'Canal Pai:', 'text_domain' ),
		'all_items'           => __( 'Todos Canais', 'text_domain' ),
		'add_new_item'        => __( 'Adicionar Novo Canal', 'text_domain' ),
		'add_new'             => __( 'Adicionar Novo', 'text_domain' ),
		'new_item'            => __( 'Novo Canal', 'text_domain' ),
		'edit_item'           => __( 'Editar Canal', 'text_domain' ),
		'update_item'         => __( 'Atualizar Canal', 'text_domain' ),
		'view_item'           => __( 'Ver Canal', 'text_domain' ),
		'search_items'        => __( 'Procurar Canal', 'text_domain' ),
		'not_found'           => __( 'Não Encontrado', 'text_domain' ),
		'not_found_in_trash'  => __( 'Não Encontrado na Lixeira', 'text_domain' ),
	);
	$args = array(
		'label'               => __( 'canais_parceiros', 'text_domain' ),
		'description'         => __( 'Canal Youtube dos Parceiros', 'text_domain' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'thumbnail', ),
		'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,
		'rewrite'             => false,
		'capability_type'     => 'page',
	);
	register_post_type( 'canais_parceiros', $args );

}

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