Produkter
Opprinnelig laget til Bolig extra AS
// Register Custom Post Type function produkter_post_type() { $labels = array( 'name' => _x( 'Produkter', 'Post Type General Name', 'boligextra' ), 'singular_name' => _x( 'Product', 'Post Type Singular Name', 'boligextra' ), 'menu_name' => __( 'Produkter', 'boligextra' ), 'name_admin_bar' => __( 'Produkt', 'boligextra' ), 'archives' => __( 'Produktarkiv', 'boligextra' ), 'parent_item_colon' => __( 'Foreldreprodukt', 'boligextra' ), 'all_items' => __( 'Alle produkter', 'boligextra' ), 'add_new_item' => __( 'Legg til nytt produkt', 'boligextra' ), 'add_new' => __( 'Legg til', 'boligextra' ), 'new_item' => __( 'Nytt produkt', 'boligextra' ), 'edit_item' => __( 'Rediger produkt', 'boligextra' ), 'update_item' => __( 'Oppdater produkt', 'boligextra' ), 'view_item' => __( 'Vis produkt', 'boligextra' ), 'search_items' => __( 'Søk etter produkt', 'boligextra' ), 'not_found' => __( 'Ikke funnet', 'boligextra' ), 'not_found_in_trash' => __( 'Ikke funnet i papirkurv', 'boligextra' ), 'featured_image' => __( 'Fremhevet bilde', 'boligextra' ), 'set_featured_image' => __( 'Velg fremhevet bilde', 'boligextra' ), 'remove_featured_image' => __( 'Fjern fremehevet bilde', 'boligextra' ), 'use_featured_image' => __( 'Bruk som fremhevet bilde', 'boligextra' ), 'insert_into_item' => __( 'Sett inn i produkt', 'boligextra' ), 'uploaded_to_this_item' => __( 'Lastet opp til produkt', 'boligextra' ), 'items_list' => __( 'Produktliste', 'boligextra' ), 'items_list_navigation' => __( 'Produktlistenavigasjon', 'boligextra' ), 'filter_items_list' => __( 'Filtrer produktliste', 'boligextra' ), ); $args = array( 'label' => __( 'Product', 'boligextra' ), 'description' => __( 'Produkter som kan vises på nettsiden', 'boligextra' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-cart', 'show_in_admin_bar' => true, 'show_in_nav_menus' => true, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'produkter', $args ); } add_action( 'init', 'produkter_post_type', 0 );