location_taxonomy
cats for tlzj
// Register Custom Taxonomy function location_taxonomy() { $labels = array( 'name' => _x( 'Categories', 'Taxonomy General Name', 'jdpro_locations' ), 'singular_name' => _x( 'Catagory', 'Taxonomy Singular Name', 'jdpro_locations' ), 'menu_name' => __( 'Categorieën', 'jdpro_locations' ), 'all_items' => __( 'Alle items', 'jdpro_locations' ), 'parent_item' => __( 'Hoofd item', 'jdpro_locations' ), 'parent_item_colon' => __( 'Hoofd item:', 'jdpro_locations' ), 'new_item_name' => __( 'Nieuwe categorie naam:', 'jdpro_locations' ), 'add_new_item' => __( 'Nieuwe categorie toevoegen:', 'jdpro_locations' ), 'edit_item' => __( 'Bewerk categorie', 'jdpro_locations' ), 'update_item' => __( 'Update categorie', 'jdpro_locations' ), 'view_item' => __( 'Bekijk categorie', 'jdpro_locations' ), 'separate_items_with_commas' => __( 'Separate items with commas', 'jdpro_locations' ), 'add_or_remove_items' => __( 'Categorieën toevoegen of verwijderen', 'jdpro_locations' ), 'choose_from_most_used' => __( 'Kies uit meest gebruikte', 'jdpro_locations' ), 'popular_items' => __( 'Populaire categorieën', 'jdpro_locations' ), 'search_items' => __( 'Zoeken', 'jdpro_locations' ), 'not_found' => __( 'Niet gevonden', 'jdpro_locations' ), ); $rewrite = array( 'slug' => 'ontdek', 'with_front' => true, 'hierarchical' => true, ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => false, 'rewrite' => $rewrite, ); register_taxonomy( 'location_categories', array( 'location' ), $args ); } // Hook into the 'init' action add_action( 'init', 'location_taxonomy', 0 );