Produse Custom Post Type
Custom post type for Produse
// Register Custom Post Type function produse_post_type() { $labels = array( 'name' => _x( 'Produse', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Produs', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Produse', 'text_domain' ), 'name_admin_bar' => __( 'Produse', 'text_domain' ), 'archives' => __( 'Arhiva produse', 'text_domain' ), 'attributes' => __( 'Atribute', 'text_domain' ), 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ), 'all_items' => __( 'Toate produsele', 'text_domain' ), 'add_new_item' => __( 'Adauga produs nou', 'text_domain' ), 'add_new' => __( 'Adauga produs', 'text_domain' ), 'new_item' => __( 'Produs nou', 'text_domain' ), 'edit_item' => __( 'Editeaza produsul', 'text_domain' ), 'update_item' => __( 'Actualizeaza produsul', 'text_domain' ), 'view_item' => __( 'Vezi produsul', 'text_domain' ), 'view_items' => __( 'Vezi produsele', 'text_domain' ), 'search_items' => __( 'Cauta produs', 'text_domain' ), 'not_found' => __( 'Produs negasit', 'text_domain' ), 'not_found_in_trash' => __( 'Nu a fost gasit la Gunoi', 'text_domain' ), 'featured_image' => __( 'Imaginea produsului', 'text_domain' ), 'set_featured_image' => __( 'Seteaza imaginea produsului', 'text_domain' ), 'remove_featured_image' => __( 'Sterge imaginea produsului', 'text_domain' ), 'use_featured_image' => __( 'Foloseste ca imagine de produs', 'text_domain' ), 'insert_into_item' => __( 'Insereaza in produs', 'text_domain' ), 'uploaded_to_this_item' => __( 'Incarcat in acest produs', 'text_domain' ), 'items_list' => __( 'Lista de produse', 'text_domain' ), 'items_list_navigation' => __( 'Navigare in lista de produse', 'text_domain' ), 'filter_items_list' => __( 'Filtreaza produsele', 'text_domain' ), ); $args = array( 'label' => __( 'Produs', 'text_domain' ), 'description' => __( 'Produse', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions', 'custom-fields', 'page-attributes', 'post-formats' ), 'taxonomies' => array( 'brand', ' categorie' ), '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( 'produse', $args ); } add_action( 'init', 'produse_post_type', 0 );