Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Gondola

Para gondolas metalicas

// Register Custom Post Type
function gondolas() {

	$labels = array(
		'name'                  => _x( 'gondolas', 'Post Type General Name', 'text_domain' ),
		'singular_name'         => _x( 'gondola', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'             => __( 'Gondolas', 'text_domain' ),
		'name_admin_bar'        => __( 'Gondolas', 'text_domain' ),
		'archives'              => __( 'Archivo de gondolas', 'text_domain' ),
		'attributes'            => __( 'Atributo de gondolas', 'text_domain' ),
		'parent_item_colon'     => __( 'Gondola principal', 'text_domain' ),
		'all_items'             => __( 'Todas las gondolas', 'text_domain' ),
		'add_new_item'          => __( 'Agregar nueva gondola', 'text_domain' ),
		'add_new'               => __( 'Agregar gondola', 'text_domain' ),
		'new_item'              => __( 'Nueva gondola', 'text_domain' ),
		'edit_item'             => __( 'Editar gondola', 'text_domain' ),
		'update_item'           => __( 'Actualizar gondola', 'text_domain' ),
		'view_item'             => __( 'ver gondola', 'text_domain' ),
		'view_items'            => __( 'Ver gondolas', 'text_domain' ),
		'search_items'          => __( 'Busqueda de gondola', 'text_domain' ),
		'not_found'             => __( 'No encontrado', 'text_domain' ),
		'not_found_in_trash'    => __( 'No encontrado en la papelera', 'text_domain' ),
		'featured_image'        => __( 'Imagen Principal', 'text_domain' ),
		'set_featured_image'    => __( 'Establecer imagen destacada', 'text_domain' ),
		'remove_featured_image' => __( 'Eliminar imagen destacada', 'text_domain' ),
		'use_featured_image'    => __( 'Usar imagen destacada', 'text_domain' ),
		'insert_into_item'      => __( 'Insertar gondola', 'text_domain' ),
		'uploaded_to_this_item' => __( 'Actualizar esta gondola', 'text_domain' ),
		'items_list'            => __( 'Lista de gondolas', 'text_domain' ),
		'items_list_navigation' => __( 'Navegar en la lista de gondolas', 'text_domain' ),
		'filter_items_list'     => __( 'Lista de gondolas de filtros', 'text_domain' ),
	);
	$rewrite = array(
		'slug'                  => 'post_type',
		'with_front'            => true,
		'pages'                 => true,
		'feeds'                 => true,
	);
	$args = array(
		'label'                 => __( 'gondola', 'text_domain' ),
		'description'           => __( 'Ingresar tipo de gondolas', 'text_domain' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'thumbnail', 'comments', 'trackbacks', 'revisions', 'custom-fields', 'page-attributes', 'post-formats' ),
		'taxonomies'            => array( 'category', 'post_tag' ),
		'hierarchical'          => true,
		'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'               => $rewrite,
		'capability_type'       => 'page',
	);
	register_post_type( 'gondolas', $args );

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