Colleagues.
I'm trying to tinker with Wordpress and confess that I'm getting a huge spanking. I have to create one more item in the menu in the Wordpress manager (wp-admin) and I saw that I have to create, if I am not mistaken, inside the functions.php file, however I am not sure how to create it. I have a template that was created by the colleague previously that did it this way:
/************ ALBUM REGISTER***********/
add_action('init', 'album_register');
register_taxonomy('album', 'album', array('hierarchical' => true, 'label' => 'Categorias de Album', 'query_var' => true, 'rewrite' => true));
function album_register() {
$labels = array(
'name' => _x('album', 'post type general name'),
'singular_name' => _x('album', 'post type singular name'),
'add_new' => _x('Adicionar Album', 'Vereador'),
'add_new_item' => __('Adicionar Album'),
'edit_item' => __('Editar Album'),
'new_item' => __('Adicionar Album'),
'view_item' => __('Visualizar Album'),
'search_items' => __('Procurar Album'),
'not_found' => __('Nothing found'),
'not_found_in_trash' => __('Nothing found in Trash'),
'parent_item_colon' => ''
);
$args = array(
'labels' => $labels,
'public' => true,
'publicly_queryable' => true,
'show_ui' => true,
'query_var' => true,
//'menu_icon' => get_stylesheet_directory_uri() . '/imagens/vereadores.png',
'rewrite' => true,
'capability_type' => 'post',
'hierarchical' => false,
'menu_position' => null,
'supports' => array('title','editor','thumbnail')
);
register_post_type( 'album' , $args );
}
/************ END ALBUM REGISTER***********/
How would I do to create an item called paychecks and direct to the contracheques.php page?
Thank you!