Produtos
CPT para Produtos. Campos serão criados com ACF Fields.
// Register Custom Post Type function express_produtos() { $labels = array( 'name' => _x( 'Produtos', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Produto', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Produtos', 'text_domain' ), 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ), 'all_items' => __( 'Todos os produtos', 'text_domain' ), 'view_item' => __( 'Ver produto', 'text_domain' ), 'add_new_item' => __( 'Adicionar novo produto', 'text_domain' ), 'add_new' => __( 'Adicionar novo', 'text_domain' ), 'edit_item' => __( 'Editar produto', 'text_domain' ), 'update_item' => __( 'Atualizar produto', 'text_domain' ), 'search_items' => __( 'Buscar produto', 'text_domain' ), 'not_found' => __( 'Não encontrado', 'text_domain' ), 'not_found_in_trash' => __( 'Não encontrado na lixeira', 'text_domain' ), ); $args = array( 'label' => __( 'produtos', 'text_domain' ), 'description' => __( 'CPT de Produtos', 'text_domain' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', ), 'taxonomies' => array( 'category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 5, 'menu_icon' => 'dashicons-cart', 'can_export' => true, 'has_archive' => false, 'exclude_from_search' => false, 'publicly_queryable' => true, 'capability_type' => 'page', ); register_post_type( 'produtos', $args ); } // Hook into the 'init' action add_action( 'init', 'express_produtos', 0 );