Portafolio
// Register Custom Post Type
function wc_portafolio() {
$labels = array(
'name' => _x( 'Portafolio', 'Post Type General Name', 'chimpress' ),
'singular_name' => _x( 'Portafolio', 'Post Type Singular Name', 'chimpress' ),
'menu_name' => __( 'Portafolio', 'chimpress' ),
'parent_item_colon' => __( 'Elemento Padre', 'chimpress' ),
'all_items' => __( 'Todos los elementos', 'chimpress' ),
'view_item' => __( 'Ver Portafolio', 'chimpress' ),
'add_new_item' => __( 'Agregar Nuevo Portafolio', 'chimpress' ),
'add_new' => __( 'Agregar Nuevo', 'chimpress' ),
'edit_item' => __( 'Editar Portafolio', 'chimpress' ),
'update_item' => __( 'Actualizar Portafolio', 'chimpress' ),
'search_items' => __( 'Buscar Portafolio', 'chimpress' ),
'not_found' => __( 'No encontrado', 'chimpress' ),
'not_found_in_trash' => __( 'No hay portafolios en la papelera', 'chimpress' ),
);
$args = array(
'label' => __( 'portafolio', 'chimpress' ),
'description' => __( 'Portafolio', 'chimpress' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'show_in_nav_menus' => true,
'show_in_admin_bar' => true,
'menu_position' => 20,
'menu_icon' => 'dashicons-images-alt',
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'page',
);
register_post_type( 'portafolio', $args );
}
// Hook into the 'init' action
add_action( 'init', 'wc_portafolio', 0 );