Created
June 18, 2012 14:21
-
-
Save cccaldas/2948619 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
function register_post_type_projeto() { | |
$labels = array( | |
'name' => _x('Projetos', 'post type general name'), | |
'singular_name' => _x('Projeto', 'post type singular name'), | |
'add_new' => _x('Novo', 'portfolio item'), | |
'add_new_item' => __('Adicionar'), | |
'edit_item' => __('Editar'), | |
'new_item' => __('Novo'), | |
'view_item' => __('Visualizar'), | |
'search_items' => __('Buscar'), | |
'not_found' => __('Não encontrado'), | |
'not_found_in_trash' => __('Não encontrado na lixeira'), | |
'parent_item_colon' => '' | |
); | |
$args = array( | |
'labels' => $labels, | |
'public' => true, | |
'publicly_queryable' => true, | |
'show_ui' => true, | |
'query_var' => true, | |
'capability_type' => 'post', | |
'hierarchical' => false, | |
'menu_position' => null, | |
'supports' => array('title', 'editor'), | |
'rewrite' => true, | |
'show_in_nav_menus' => true | |
); | |
register_post_type("projeto", $args); | |
} | |
function register_post_type_estudante() { | |
$labels = array( | |
'name' => _x('Estudantes', 'post type general name'), | |
'singular_name' => _x('Estudante', 'post type singular name'), | |
'add_new' => _x('Novo', 'portfolio item'), | |
'add_new_item' => __('Adicionar'), | |
'edit_item' => __('Editar'), | |
'new_item' => __('Novo'), | |
'view_item' => __('Visualizar'), | |
'search_items' => __('Buscar'), | |
'not_found' => __('Não encontrado'), | |
'not_found_in_trash' => __('Não encontrado na lixeira'), | |
'parent_item_colon' => '' | |
); | |
$args = array( | |
'labels' => $labels, | |
'public' => true, | |
'publicly_queryable' => true, | |
'show_ui' => true, | |
'query_var' => true, | |
'capability_type' => 'post', | |
'hierarchical' => false, | |
'menu_position' => null, | |
'supports' => array('title'), | |
'rewrite' => true, | |
'show_in_nav_menus' => true | |
); | |
register_post_type("estudante", $args); | |
register_taxonomy("categoria", "estudante", array( "hierarchical" => true, "label" => "Categorias")); | |
} | |
function register_post_type_banner() { | |
$labels = array( | |
'name' => _x('Banners', 'post type general name'), | |
'singular_name' => _x('Banner', 'post type singular name'), | |
'add_new' => _x('Novo', 'portfolio item'), | |
'add_new_item' => __('Adicionar'), | |
'edit_item' => __('Editar'), | |
'new_item' => __('Novo'), | |
'view_item' => __('Visualizar'), | |
'search_items' => __('Buscar'), | |
'not_found' => __('Não encontrado'), | |
'not_found_in_trash' => __('Não encontrado na lixeira'), | |
'parent_item_colon' => '' | |
); | |
$args = array( | |
'labels' => $labels, | |
'public' => true, | |
'publicly_queryable' => true, | |
'show_ui' => true, | |
'query_var' => true, | |
'capability_type' => 'post', | |
'hierarchical' => false, | |
'menu_position' => null, | |
'supports' => array('title'), | |
'rewrite' => true, | |
'show_in_nav_menus' => true | |
); | |
register_post_type("banner", $args); | |
//register_taxonomy("categoria", "estudante", array( "hierarchical" => true, "label" => "Categorias")); | |
} | |
function register_post_type_pesquisador() { | |
$labels = array( | |
'name' => _x('Pesquisadores', 'post type general name'), | |
'singular_name' => _x('Pesquisador', 'post type singular name'), | |
'add_new' => _x('Novo', 'portfolio item'), | |
'add_new_item' => __('Adicionar'), | |
'edit_item' => __('Editar'), | |
'new_item' => __('Novo'), | |
'view_item' => __('Visualizar'), | |
'search_items' => __('Buscar'), | |
'not_found' => __('Não encontrado'), | |
'not_found_in_trash' => __('Não encontrado na lixeira'), | |
'parent_item_colon' => '' | |
); | |
$args = array( | |
'labels' => $labels, | |
'public' => true, | |
'publicly_queryable' => true, | |
'show_ui' => true, | |
'query_var' => true, | |
'capability_type' => 'post', | |
'hierarchical' => false, | |
'menu_position' => null, | |
'supports' => array('title', 'editor'), | |
'rewrite' => true, | |
'show_in_nav_menus' => true | |
); | |
register_post_type("pesquisador", $args); | |
//register_taxonomy("categoria", "estudante", array( "hierarchical" => true, "label" => "Categorias")); | |
} | |
add_action("init", "register_post_type_estudante"); | |
add_action("init", "register_post_type_banner"); | |
add_action("init", "register_post_type_pesquisador"); | |
add_action("init", "register_post_type_projeto"); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment