Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Productos

// Register Custom Post Type
function cpt_producto() {

	$labels = array(
		'name'                => _x( 'Productos', 'Post Type General Name', 'Chimpress' ),
		'singular_name'       => _x( 'Producto', 'Post Type Singular Name', 'Chimpress' ),
		'menu_name'           => __( 'Productos', 'Chimpress' ),
		'name_admin_bar'      => __( 'Productos', 'Chimpress' ),
		'parent_item_colon'   => __( 'Producto Padre', 'Chimpress' ),
		'all_items'           => __( 'Todos los Productos', 'Chimpress' ),
		'add_new_item'        => __( 'Agregar Nuevo Producto', 'Chimpress' ),
		'add_new'             => __( 'Agregar Nuevo', 'Chimpress' ),
		'new_item'            => __( 'Nuevo Producto', 'Chimpress' ),
		'edit_item'           => __( 'Editar Producto', 'Chimpress' ),
		'update_item'         => __( 'Actualizar Producto', 'Chimpress' ),
		'view_item'           => __( 'Ver Producto', 'Chimpress' ),
		'search_items'        => __( 'Buscar Servicio', 'Chimpress' ),
		'not_found'           => __( 'No Encontrado', 'Chimpress' ),
		'not_found_in_trash'  => __( 'No encontrado en la Papelera', 'Chimpress' ),
	);
	$args = array(
		'label'               => __( 'producto', 'Chimpress' ),
		'description'         => __( 'CPT Producto para Chimpress', 'Chimpress' ),
		'labels'              => $labels,
		'supports'            => array( 'title', 'editor', 'excerpt', ),
		'hierarchical'        => false,
		'public'              => true,
		'show_ui'             => true,
		'show_in_menu'        => true,
		'menu_position'       => 20,
		'menu_icon'           => 'dashicons-phone',
		'show_in_admin_bar'   => true,
		'show_in_nav_menus'   => true,
		'can_export'          => true,
		'has_archive'         => true,
		'exclude_from_search' => false,
		'publicly_queryable'  => true,
		'capability_type'     => 'post',
	);
	register_post_type( 'producto', $args );

}

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