Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

productos

if ( ! function_exists('avmo_productos_post_type') ) {

// Register Custom Post Type
function avmo_productos_post_type() {

	$labels = array(
		'name'                  => _x( 'Productos', 'Post Type General Name', 'twentyfourteen' ),
		'singular_name'         => _x( 'Producto', 'Post Type Singular Name', 'twentyfourteen' ),
		'menu_name'             => __( 'Productos', 'twentyfourteen' ),
		'name_admin_bar'        => __( 'Productos Admin', 'twentyfourteen' ),
		'archives'              => __( 'Archivos', 'twentyfourteen' ),
		'attributes'            => __( 'Atributos', 'twentyfourteen' ),
		'parent_item_colon'     => __( 'Superior', 'twentyfourteen' ),
		'all_items'             => __( 'Todos', 'twentyfourteen' ),
		'add_new_item'          => __( 'Add New Item', 'twentyfourteen' ),
		'add_new'               => __( 'Agregar Nuevo', 'twentyfourteen' ),
		'new_item'              => __( 'Nuevo Producto', 'twentyfourteen' ),
		'edit_item'             => __( 'Editar', 'twentyfourteen' ),
		'update_item'           => __( 'Actualizar', 'twentyfourteen' ),
		'view_item'             => __( 'Ver Produto', 'twentyfourteen' ),
		'view_items'            => __( 'Ver Produtos', 'twentyfourteen' ),
		'search_items'          => __( 'Buscar', 'twentyfourteen' ),
		'not_found'             => __( 'No encontrado', 'twentyfourteen' ),
		'not_found_in_trash'    => __( 'No encontrado en papelera', 'twentyfourteen' ),
		'featured_image'        => __( 'Destacado', 'twentyfourteen' ),
		'set_featured_image'    => __( 'Cambiar imagen destacada', 'twentyfourteen' ),
		'remove_featured_image' => __( 'Quitar', 'twentyfourteen' ),
		'use_featured_image'    => __( 'Usar', 'twentyfourteen' ),
		'insert_into_item'      => __( 'Insertar', 'twentyfourteen' ),
		'uploaded_to_this_item' => __( 'Actualizar', 'twentyfourteen' ),
		'items_list'            => __( 'Lista de productos', 'twentyfourteen' ),
		'items_list_navigation' => __( 'Lista de navegacion', 'twentyfourteen' ),
		'filter_items_list'     => __( 'Filtrar', 'twentyfourteen' ),
	);
	$args = array(
		'label'                 => __( 'Producto', 'twentyfourteen' ),
		'description'           => __( 'Catalogo de productos', 'twentyfourteen' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'excerpt', 'thumbnail', ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 20,
		'show_in_admin_bar'     => true,
		'show_in_nav_menus'     => false,
		'can_export'            => true,
		'has_archive'           => false,		
		'exclude_from_search'   => false,
		'publicly_queryable'    => true,
		'capability_type'       => 'page',
	);
	register_post_type( 'productos', $args );

}
add_action( 'init', 'avmo_productos_post_type', 0 );

}