Projektkategorier
för ArkitektBlå
if ( ! function_exists( 'cc_taxonomy' ) ) { // Register Custom Taxonomy function cc_taxonomy() { $labels = array( 'name' => _x( 'Projektkategorier', 'Taxonomy General Name', 'Projekt' ), 'singular_name' => _x( 'Projektkategori', 'Taxonomy Singular Name', 'Projekt' ), 'menu_name' => __( 'Projektkategori', 'Projekt' ), 'all_items' => __( 'Alla', 'Projekt' ), 'parent_item' => __( 'Parent item', 'Projekt' ), 'parent_item_colon' => __( 'Parent Item:', 'Projekt' ), 'new_item_name' => __( 'Ny kategori', 'Projekt' ), 'add_new_item' => __( 'Ny kategori', 'Projekt' ), 'edit_item' => __( 'Redigera kategori', 'Projekt' ), 'update_item' => __( 'Uppdatera kategori', 'Projekt' ), 'view_item' => __( 'Visa kategori', 'Projekt' ), 'separate_items_with_commas' => __( 'Separate items with commas', 'Projekt' ), 'add_or_remove_items' => __( 'Ta bort kategori', 'Projekt' ), 'choose_from_most_used' => __( 'Välj från mest använda', 'Projekt' ), 'popular_items' => __( 'Populära kategorier', 'Projekt' ), 'search_items' => __( 'Sök kategorier', 'Projekt' ), 'not_found' => __( 'Kunde inte hitta några kategorier', 'Projekt' ), ); $rewrite = array( 'slug' => 'project', 'with_front' => true, 'hierarchical' => true, ); $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, ); register_taxonomy( 'project_category', array( 'project' ), $args ); } // Hook into the 'init' action add_action( 'init', 'cc_taxonomy', 0 ); }