Släkthändelser tax släktgren
Cust taxonomy släktgren för CPT släkthänderlser
// Register Custom Taxonomy function atib_slakt_gren_taxonomy() { $labels = array( 'name' => _x( 'Släktgrenar', 'Taxonomy General Name', 'twentyfourteen' ), 'singular_name' => _x( 'Släktgren', 'Taxonomy Singular Name', 'twentyfourteen' ), 'menu_name' => __( 'Släktgrenar', 'twentyfourteen' ), 'all_items' => __( 'All Items', 'twentyfourteen' ), 'parent_item' => __( 'Parent Item', 'twentyfourteen' ), 'parent_item_colon' => __( 'Parent Item:', 'twentyfourteen' ), 'new_item_name' => __( 'New Item Name', 'twentyfourteen' ), 'add_new_item' => __( 'Lägg till släktgren', 'twentyfourteen' ), 'edit_item' => __( 'Edit Item', 'twentyfourteen' ), 'update_item' => __( 'Update Item', 'twentyfourteen' ), 'separate_items_with_commas' => __( 'Separate items with commas', 'twentyfourteen' ), 'search_items' => __( 'Search Items', 'twentyfourteen' ), 'add_or_remove_items' => __( 'Add or remove items', 'twentyfourteen' ), 'choose_from_most_used' => __( 'Choose from the most used items', 'twentyfourteen' ), 'not_found' => __( 'Not Found', 'twentyfourteen' ), ); $rewrite = array( 'slug' => '', 'with_front' => true, 'hierarchical' => false, ); $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( 'slakt-gren', array( 'slakt_handelser' ), $args ); } // Hook into the 'init' action add_action( 'init', 'atib_slakt_gren_taxonomy', 0 );