Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Séries Post Type

// Register Custom Post Type
function series_post_type() {

	$labels = array(
		'name'                => _x( 'Séries', 'Post Type General Name', 'text_domain' ),
		'singular_name'       => _x( 'Série', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'           => __( 'Séries', 'text_domain' ),
		'parent_item_colon'   => __( 'Anterior:', 'text_domain' ),
		'all_items'           => __( 'Todas', 'text_domain' ),
		'view_item'           => __( 'Ver', 'text_domain' ),
		'add_new_item'        => __( 'Adicionar', 'text_domain' ),
		'add_new'             => __( 'Adicionar', 'text_domain' ),
		'edit_item'           => __( 'Editar', 'text_domain' ),
		'update_item'         => __( 'Atualizar', 'text_domain' ),
		'search_items'        => __( 'Procurar', 'text_domain' ),
		'not_found'           => __( 'Não encontrada', 'text_domain' ),
		'not_found_in_trash'  => __( 'Não encontrada na lixeira', 'text_domain' ),
	);
	$args = array(
		'label'               => __( 'series', 'text_domain' ),
		'description'         => __( 'Séries de TV', 'text_domain' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'excerpt', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes', ),
		'taxonomies'          => array( 'canais' ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'menu_position'       => 20,
		'menu_icon'           => 'dashicons-video-alt3',
		'can_export'          => true,
		'has_archive'         => false,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'rewrite'             => false,
		'capability_type'     => 'page',
	);
	register_post_type( 'series', $args );

}

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