Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Patrocínio

// Register Custom Post Type
function patrocinio_post_type() {

	$labels = array(
		'name'                => _x( 'Patrocínios', 'Post Type General Name', 'themelang' ),
		'singular_name'       => _x( 'Patrocínio', 'Post Type Singular Name', 'themelang' ),
		'menu_name'           => __( 'Patrocínio', 'themelang' ),
		'parent_item_colon'   => __( 'Parent Product:', 'themelang' ),
		'all_items'           => __( 'Todos os Patrocínio', 'themelang' ),
		'view_item'           => __( 'Vizualizar Patrocínio', 'themelang' ),
		'add_new_item'        => __( 'Adiconar Novo Patrocínio', 'themelang' ),
		'add_new'             => __( 'Novo Patrocínio', 'themelang' ),
		'edit_item'           => __( 'Editar Patrocínio', 'themelang' ),
		'update_item'         => __( 'Altualisar Patrocínio', 'themelang' ),
		'search_items'        => __( 'Buscar patrocínio', 'themelang' ),
		'not_found'           => __( 'Patrocínio não encontrado', 'themelang' ),
		'not_found_in_trash'  => __( 'Patrocínio não encontrado no lixo', 'themelang' ),
	);
	$args = array(
		'label'               => __( 'patrocinio', 'themelang' ),
		'description'         => __( 'Galeria a patrocínios a esporte', 'themelang' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'custom-fields', ),
		'taxonomies'          => array( 'category', 'post_tag' ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'show_in_nav_menus'   => true,
		'show_in_admin_bar'   => true,
		'menu_position'       => 5,
		'menu_icon'           => '',
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'capability_type'     => 'post',
	);
	register_post_type( 'patrocinio', $args );

}

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