Prueba de Libros
Prueba de custom post type para libros, no se si este bien.
if ( ! function_exists('Libros') ) { // Register Custom Post Type function Libros() { $labels = array( 'name' => 'Libros', 'singular_name' => 'Libro', 'menu_name' => 'Libros', 'name_admin_bar' => 'Libros', 'parent_item_colon' => 'Libros', 'all_items' => 'Todos Los Libros', 'add_new_item' => 'Añadir Nuevo Libro', 'add_new' => 'Añadir Nuevo', 'new_item' => 'Añadir Libro', 'edit_item' => 'Editar Libro', 'update_item' => 'Actualizar Libro', 'view_item' => 'Ver libro', 'search_items' => 'Buscar libro', 'not_found' => 'No se han encontrado Libros', 'not_found_in_trash' => 'No se han encontrado Libros en la papelera', ); $args = array( 'label' => 'libros', 'description' => 'Revistas publicadas por el IQ', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'trackbacks', 'revisions', ), 'taxonomies' => array( 'numero', 'autor' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-welcome-add-page', '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( 'libros', $args ); } // Hook into the 'init' action add_action( 'init', 'Libros', 0 ); }