Parceiros
CPT Parceiros
if ( ! function_exists('parceiros_post_type') ) { // Register Custom Post Type function parceiros_post_type() { $labels = array( 'name' => _x( 'Parceiros', 'Post Type General Name', 'g7theme' ), 'singular_name' => _x( 'Parceiro', 'Post Type Singular Name', 'g7theme' ), 'menu_name' => __( 'Parceiros', 'g7theme' ), 'parent_item_colon' => __( 'Item Pai', 'g7theme' ), 'all_items' => __( 'Todos os Parceiros', 'g7theme' ), 'view_item' => __( 'Visualizar Parceiro', 'g7theme' ), 'add_new_item' => __( 'Adicionar novo Parceiro', 'g7theme' ), 'add_new' => __( 'Adicionar Novo', 'g7theme' ), 'edit_item' => __( 'Editar Parceiro', 'g7theme' ), 'update_item' => __( 'Atualizar Parceiro', 'g7theme' ), 'search_items' => __( 'Buscar Parceiro', 'g7theme' ), 'not_found' => __( 'Nenhum parceiro encontrado', 'g7theme' ), 'not_found_in_trash' => __( 'Nenhum parceiro encontrado na lixeira', 'g7theme' ), ); $args = array( 'label' => __( 'parceiro', 'g7theme' ), 'description' => __( 'Parceiros', 'g7theme' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 10, 'menu_icon' => 'icon-group', 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'parceiro', $args ); } // Hook into the 'init' action add_action( 'init', 'parceiros_post_type', 0 ); }