PROGRAMACIÓN LUNES 3 A MARTES 4 DE FEBRERO

add_action(‘init’, ‘cptui_register_my_cpt_director’); function cptui_register_my_cpt_director() { register_post_type(‘director’, array( ‘label’ => ‘directores’, ‘description’ => ‘Cartelera’, ‘public’ => true, ‘show_ui’ => true, ‘show_in_menu’ => true, ‘capability_type’ => ‘post’, ‘map_meta_cap’ => true, …

136
136

add_action(‘init’, ‘cptui_register_my_cpt_director’);
function cptui_register_my_cpt_director() {
register_post_type(‘director’, array(
‘label’ => ‘directores’,
‘description’ => ‘Cartelera’,
‘public’ => true,
‘show_ui’ => true,
‘show_in_menu’ => true,
‘capability_type’ => ‘post’,
‘map_meta_cap’ => true,
‘hierarchical’ => false,
‘rewrite’ => array(‘slug’ => ‘director’, ‘with_front’ => true),
‘query_var’ => true,
‘has_archive’ => true,
‘exclude_from_search’ => true,
‘supports’ => array(‘title’,’editor’,’excerpt’,’trackbacks’,’custom-fields’,’comments’,’revisions’,’thumbnail’,’author’,’page-attributes’,’post-formats’),
‘taxonomies’ => array(‘category’),
‘labels’ => array (
‘name’ => ‘directores’,
‘singular_name’ => ‘director’,
‘menu_name’ => ‘Pelicula’,
‘add_new’ => ‘Nueva Pelicula’,
‘add_new_item’ => ‘Add New director’,
‘edit’ => ‘Editar ‘,
‘edit_item’ => ‘Editar Pelicula’,
‘new_item’ => ‘Nueva Pelicula’,
‘view’ => ‘Ver Pelicula’,
‘view_item’ => ‘Ver Pelicula’,
‘search_items’ => ‘Buscar Pelicula’,
‘not_found’ => ‘No se encuentra’,
‘not_found_in_trash’ => ‘No directores Found in Trash’,
‘parent’ => ‘Parent director’,
)
) ); }

En este articulo