Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

fichas

Fichas para chicas

if ( ! function_exists('fichas_post_type') ) {

// Register Custom Post Type
function fichas_post_type() {

	$labels = array(
		'name'                  => _x( 'Fichas', 'Post Type General Name', 'text_domain' ),
		'singular_name'         => _x( 'Ficha', 'Post Type Singular Name', 'text_domain' ),
		'menu_name'             => __( 'Fichas', 'text_domain' ),
		'name_admin_bar'        => __( 'Ficha', 'text_domain' ),
		'archives'              => __( 'Item Archivos', 'text_domain' ),
		'attributes'            => __( 'Item Attributos', 'text_domain' ),
		'parent_item_colon'     => __( 'Ficha padre:', 'text_domain' ),
		'all_items'             => __( 'Todas las fichas', 'text_domain' ),
		'add_new_item'          => __( 'Añadir nueva ficha', 'text_domain' ),
		'add_new'               => __( 'Nueva ficha', 'text_domain' ),
		'new_item'              => __( 'Nuevo item', 'text_domain' ),
		'edit_item'             => __( 'Editar ficha', 'text_domain' ),
		'update_item'           => __( 'Actualizar ficha', 'text_domain' ),
		'view_item'             => __( 'Ver ficha', 'text_domain' ),
		'view_items'            => __( 'Ver items', 'text_domain' ),
		'search_items'          => __( 'Buscar Fichas', 'text_domain' ),
		'not_found'             => __( 'No se han encontrado fichas', 'text_domain' ),
		'not_found_in_trash'    => __( 'No hay nada ern la papelera', 'text_domain' ),
		'featured_image'        => __( 'Imagen destacada', 'text_domain' ),
		'set_featured_image'    => __( 'Establecer imagen destacada', 'text_domain' ),
		'remove_featured_image' => __( 'Borrar imagen destacada', 'text_domain' ),
		'use_featured_image'    => __( 'Utilizar imagen destacada', 'text_domain' ),
		'insert_into_item'      => __( 'Insertar en el item', 'text_domain' ),
		'uploaded_to_this_item' => __( 'Subir a este item', 'text_domain' ),
		'items_list'            => __( 'Lista de items', 'text_domain' ),
		'items_list_navigation' => __( 'Mavegación en lista de items', 'text_domain' ),
		'filter_items_list'     => __( 'Filtrar lista de items', 'text_domain' ),
	);
	$args = array(
		'label'                 => __( 'Ficha', 'text_domain' ),
		'description'           => __( 'Fichas de chicas.', 'text_domain' ),
		'labels'                => $labels,
		'supports'              => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'page-attributes' ),
		'taxonomies'            => array( 'category', 'post_tag' ),
		'hierarchical'          => false,
		'public'                => true,
		'show_ui'               => true,
		'show_in_menu'          => true,
		'menu_position'         => 5,
		'menu_icon'             => 'dashicons-universal-access-alt',
		'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( 'fichas', $args );

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

}