nehnuteľnosti
Custom post pre nehnuteľnosti.
if ( ! function_exists('nehnutelnosti_post_type') ) { // Register Custom Post Type function nehnutelnosti_post_type() { $labels = array( 'name' => 'Nehnuteľnosti', 'singular_name' => 'Nehnuteľnosť', 'menu_name' => 'Nehnuteľnosti', 'name_admin_bar' => 'Nehnuteľnosť', 'archives' => 'Archív nehnuteľností', 'attributes' => 'Atribúty nehnuteľnosti', 'parent_item_colon' => 'Nadradená položka:', 'all_items' => 'Všetky nehnuteľnosti', 'add_new_item' => 'Pridaj novú nehnuteľnosť', 'add_new' => 'Pridaj nehnuteľnosť', 'new_item' => 'Nová nehnuteľnosť', 'edit_item' => 'Uprav nehnuteľnosť', 'update_item' => 'Aktualizuj nehnuteľnosť', 'view_item' => 'Zobraz nehnuteľnosť', 'view_items' => 'Zobraz nehnuteľnosti', 'search_items' => 'Hľadaj nehnuteľnosť', 'not_found' => 'Nenájdené', 'not_found_in_trash' => 'Nenašlo sa v koši', 'featured_image' => 'Ilustračný obrázok', 'set_featured_image' => 'Nastav ilustračný obrázok', 'remove_featured_image' => 'Odstráň ilustračný obrázok', 'use_featured_image' => 'Použi ako ilustračný obrázok', 'insert_into_item' => 'Vlož do nehnuteľnosti', 'uploaded_to_this_item' => 'Nahrané do tejto nehnuteľnosti', 'items_list' => 'Zoznam nehnuteľností', 'items_list_navigation' => 'Navigácia v zozname nehnuteľností', 'filter_items_list' => 'Filtruj zoznam nehnuteľností', ); $args = array( 'label' => 'Nehnuteľnosť', 'description' => 'Informačná stránka nehnuteľností.', 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'author', 'thumbnail', 'comments', 'trackbacks', 'custom-fields', 'page-attributes', ), 'taxonomies' => array( 'byt', 'rodinné domy a vily', 'komerčné nehnuteľnosti', 'pozemky', 'developerské projekty', 'iné' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicon-admin-multisite', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'query_var' => 'nehnutelnost', 'capability_type' => 'post', 'show_in_rest' => false, ); register_post_type( 'nehnutelnost', $args ); } add_action( 'init', 'nehnutelnosti_post_type', 0 ); }