Custom post type – FMG Telo ako delo
telo ako delo online treningy
if ( ! function_exists('custom_post_type_tad') ) { // Register Custom Post Type function custom_post_type_tad() { $labels = array( 'name' => _x( 'Epizódy', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Epizóda', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Telo ako delo', 'text_domain' ), 'name_admin_bar' => __( 'Telo ako delo', 'text_domain' ), 'archives' => __( 'Archív', 'text_domain' ), 'attributes' => __( 'Vlastnosti', 'text_domain' ), 'parent_item_colon' => __( 'Nadradená položka', 'text_domain' ), 'all_items' => __( 'Všetky epizódy', 'text_domain' ), 'add_new_item' => __( 'Pridať novú epizódu', 'text_domain' ), 'add_new' => __( 'Pridať novú', 'text_domain' ), 'new_item' => __( 'Nová epizóda', 'text_domain' ), 'edit_item' => __( 'Upraviť epizódu', 'text_domain' ), 'update_item' => __( 'Aktualizovať epiźodu', 'text_domain' ), 'view_item' => __( 'Zobraziť epizódu', 'text_domain' ), 'view_items' => __( 'Zobraziť epizódy', 'text_domain' ), 'search_items' => __( 'Vyhľadať epizódu', 'text_domain' ), 'not_found' => __( 'Nenájdené', 'text_domain' ), 'not_found_in_trash' => __( 'Nenájdené v koši', 'text_domain' ), 'featured_image' => __( 'Prezentačný obrázok', 'text_domain' ), 'set_featured_image' => __( 'Nastaviť prezentačný obrázok', 'text_domain' ), 'remove_featured_image' => __( 'Odstrániť prezentačný obrázok', 'text_domain' ), 'use_featured_image' => __( 'Použiť ako prezentačný obrázok', 'text_domain' ), 'insert_into_item' => __( 'Vložiť do epizódy', 'text_domain' ), 'uploaded_to_this_item' => __( 'Nahrať do tejto epizódy', 'text_domain' ), 'items_list' => __( 'Zoznam epizód', 'text_domain' ), 'items_list_navigation' => __( 'Navigácia zoznamu', 'text_domain' ), 'filter_items_list' => __( 'Filtrovať zoznam', 'text_domain' ), ); $args = array( 'label' => __( 'Epizóda', 'text_domain' ), 'description' => __( 'Telo ako delo - online', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields', 'post-formats' ), 'taxonomies' => array( 'tad_category', 'tad_post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-video-alt', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => false, 'has_archive' => false, 'exclude_from_search' => true, 'publicly_queryable' => true, 'capability_type' => 'post', ); register_post_type( 'teloakodelo_epizoda', $args ); } add_action( 'init', 'custom_post_type_tad', 0 ); }