Ljudi FCS
if ( ! function_exists( 'tax_people' ) ) {
// Register Custom Taxonomy
function tax_people() {
$labels = array(
'name' => _x( 'Ljudi', 'Taxonomy General Name', 'fcs' ),
'singular_name' => _x( 'Ljudi', 'Taxonomy Singular Name', 'fcs' ),
'menu_name' => __( 'Ljudi', 'fcs' ),
'all_items' => __( 'Svi ljudi', 'fcs' ),
'parent_item' => __( 'Parent Item', 'fcs' ),
'parent_item_colon' => __( 'Parent Item:', 'fcs' ),
'new_item_name' => __( 'Novo', 'fcs' ),
'add_new_item' => __( 'Dodaj', 'fcs' ),
'edit_item' => __( 'Izmeni', 'fcs' ),
'update_item' => __( 'Sačuvaj', 'fcs' ),
'view_item' => __( 'Pogledaj', 'fcs' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'fcs' ),
'add_or_remove_items' => __( 'Add or remove items', 'fcs' ),
'choose_from_most_used' => __( 'Choose from the most used', 'fcs' ),
'popular_items' => __( 'Popular Items', 'fcs' ),
'search_items' => __( 'Search Items', 'fcs' ),
'not_found' => __( 'Not Found', 'fcs' ),
'no_terms' => __( 'No items', 'fcs' ),
'items_list' => __( 'Items list', 'fcs' ),
'items_list_navigation' => __( 'Items list navigation', 'fcs' ),
);
$rewrite = array(
'slug' => 'ljudi',
'with_front' => true,
'hierarchical' => false,
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
'rewrite' => $rewrite,
'show_in_rest' => true,
);
register_taxonomy( 'people', array( 'filmovi' ), $args );
}
add_action( 'init', 'tax_people', 0 );
}