Asociaciones Catlover_es
CPT Asociaciones de catlover
if ( ! function_exists('asociaciones_post_type') ) { // Register Custom Post Type function asociaciones_post_type() { $labels = array( 'name' => _x( 'Asociaciones', 'Post Type General Name', 'asociaciones_post_type' ), 'singular_name' => _x( 'Asociación', 'Post Type Singular Name', 'asociaciones_post_type' ), 'menu_name' => __( 'Asociaciones', 'asociaciones_post_type' ), 'name_admin_bar' => __( 'Asociaciones', 'asociaciones_post_type' ), 'archives' => __( 'Archivos de Asociaciones', 'asociaciones_post_type' ), 'attributes' => __( 'Atributos de Asociaciones', 'asociaciones_post_type' ), 'parent_item_colon' => __( 'Parent de asociaciones:', 'asociaciones_post_type' ), 'all_items' => __( 'Todas las Asociaciones', 'asociaciones_post_type' ), 'add_new_item' => __( 'Añadir Asociación', 'asociaciones_post_type' ), 'add_new' => __( 'Añadir Asocación', 'asociaciones_post_type' ), 'new_item' => __( 'Nueva Asocación', 'asociaciones_post_type' ), 'edit_item' => __( 'Editar asociación', 'asociaciones_post_type' ), 'update_item' => __( 'Actualizar asociación', 'asociaciones_post_type' ), 'view_item' => __( 'Ver asociación', 'asociaciones_post_type' ), 'view_items' => __( 'Ver asociaciones', 'asociaciones_post_type' ), 'search_items' => __( 'Buscar asociacion', 'asociaciones_post_type' ), 'not_found' => __( 'no encontrada', 'asociaciones_post_type' ), 'not_found_in_trash' => __( 'No encontrada en la papelera', 'asociaciones_post_type' ), 'featured_image' => __( 'Imgane principal', 'asociaciones_post_type' ), 'set_featured_image' => __( 'Establecer imagen principal', 'asociaciones_post_type' ), 'remove_featured_image' => __( 'Eliminar imagen principal', 'asociaciones_post_type' ), 'use_featured_image' => __( 'usar como imagen principal', 'asociaciones_post_type' ), 'insert_into_item' => __( 'Insertar en asociación', 'asociaciones_post_type' ), 'uploaded_to_this_item' => __( 'Subido a esta asociación', 'asociaciones_post_type' ), 'items_list' => __( 'Lista de asocaciones', 'asociaciones_post_type' ), 'items_list_navigation' => __( 'Lista de Navegación de asociaciones', 'asociaciones_post_type' ), 'filter_items_list' => __( 'Filtrar lista de asociaciones', 'asociaciones_post_type' ), ); $args = array( 'label' => __( 'Asociación', 'asociaciones_post_type' ), 'description' => __( 'Custom Post Type de asociaciones en Catlover.es', 'asociaciones_post_type' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'custom-fields' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-pets', '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' => 'page', ); register_post_type( 'cpt_asociaciones', $args ); } add_action( 'init', 'asociaciones_post_type', 0 ); }