Imóveis
Cadastro de imóveis
// Register Custom Post Type function custom_post_type() { $labels = array( 'name' => _x( 'Imóveis', 'Post Type General Name', 'bl' ), 'singular_name' => _x( 'Imóvel', 'Post Type Singular Name', 'bl' ), 'menu_name' => __( 'Imóveis', 'bl' ), 'parent_item_colon' => __( 'Similares:', 'bl' ), 'all_items' => __( 'Todos os imóveis', 'bl' ), 'view_item' => __( 'Ver imóvel', 'bl' ), 'add_new_item' => __( 'Add novo imóvel', 'bl' ), 'add_new' => __( 'Add Novo', 'bl' ), 'edit_item' => __( 'Editar', 'bl' ), 'update_item' => __( 'Atualizar', 'bl' ), 'search_items' => __( 'Buscar imóvel', 'bl' ), 'not_found' => __( 'Nada encontrado', 'bl' ), 'not_found_in_trash' => __( 'Nada na lixeira', 'bl' ), ); $rewrite = array( 'slug' => 'imovel', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'label' => __( 'post_imoveis', 'bl' ), 'description' => __( 'Cadastre imóveis', 'bl' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', 'comments', 'custom-fields', 'page-attributes', ), 'taxonomies' => array( 'imovel' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'post_imoveis', $args ); } // Hook into the 'init' action add_action( 'init', 'custom_post_type', 0 );