Leyes
Legis en Laravil.com
// Register Custom Post Type function post_leyes() { $labels = array( 'name' => _x( 'Leyes', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Ley', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Leyes', 'text_domain' ), 'name_admin_bar' => __( 'Leyes', 'text_domain' ), 'archives' => __( 'Lista de leyes', 'text_domain' ), 'attributes' => __( 'Atributos de ley', 'text_domain' ), 'parent_item_colon' => __( 'Ley superior', 'text_domain' ), 'all_items' => __( 'Todas las leyes', 'text_domain' ), 'add_new_item' => __( 'Añadir nueva ley', 'text_domain' ), 'add_new' => __( 'Añadir nuevo', 'text_domain' ), 'new_item' => __( 'Nueva ley', 'text_domain' ), 'edit_item' => __( 'Editar ley', 'text_domain' ), 'update_item' => __( 'Actualizar ley', 'text_domain' ), 'view_item' => __( 'Ver ley', 'text_domain' ), 'view_items' => __( 'Ver leyes', 'text_domain' ), 'search_items' => __( 'Buscar ley', 'text_domain' ), 'not_found' => __( 'No hay ley', 'text_domain' ), 'not_found_in_trash' => __( 'No hay leyes en el basurero', 'text_domain' ), 'featured_image' => __( 'Portada de la ley', 'text_domain' ), 'set_featured_image' => __( 'Establecer portada', 'text_domain' ), 'remove_featured_image' => __( 'Eliminar portada', 'text_domain' ), 'use_featured_image' => __( 'Usar como imagen destacada', 'text_domain' ), 'insert_into_item' => __( 'Insertar en la ley', 'text_domain' ), 'uploaded_to_this_item' => __( 'Subido a la ley', 'text_domain' ), 'items_list' => __( 'Lista de leyes', 'text_domain' ), 'items_list_navigation' => __( 'Navegación de la lista de leyes', 'text_domain' ), 'filter_items_list' => __( 'Filtrar lista de leyes', 'text_domain' ), ); $rewrite = array( 'slug' => 'legis', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'Ley', 'text_domain' ), 'description' => __( 'Compendio de leyes relacionadas a administración, contabilidad, auditoría y gestión empresarial', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-bank', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => 'leyes', 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'post_type_leyes', $args ); } add_action( 'init', 'post_leyes', 0 );