Support

Account

Home Forums ACF PRO Woocommerce metabox position / users Reply To: Woocommerce metabox position / users

  • Hi,
    I can’t reproduce the problem now, so I think maybe it’s a side effect…

    My code is quite simple :

    if( function_exists('acf_add_local_field_group') ):
    
        // Woocommerce : Product page fields
    
        acf_add_local_field_group(array (
            'key' => 'group_575eadb687a13',
            'title' => 'PRODUCT INFORMATIONS',
            'fields' => array (
                array (
                    'key' => 'field_575eadcca9ddd',
                    'label' => '3 Instagram Photos',
                    'name' => 'three_instagram_photos',
                    'type' => 'gallery',
                    'instructions' => '',
                    'required' => 0,
                    'conditional_logic' => 0,
                    'wrapper' => array (
                        'width' => '',
                        'class' => '',
                        'id' => '',
                    ),
                    'min' => '',
                    'max' => 3,
                    'preview_size' => 'medium',
                    'insert' => 'append',
                    'library' => 'all',
                    'min_width' => '',
                    'min_height' => '',
                    'min_size' => '',
                    'max_width' => '',
                    'max_height' => '',
                    'max_size' => '',
                    'mime_types' => '',
                ),
                array (
                    'key' => 'field_57682747afc89',
                    'label' => 'External video',
                    'name' => 'external_video',
                    'type' => 'oembed',
                    'instructions' => '',
                    'required' => 0,
                    'conditional_logic' => 0,
                    'wrapper' => array (
                        'width' => '',
                        'class' => '',
                        'id' => '',
                    ),
                    'width' => '',
                    'height' => '',
                ),
                array (
                    'key' => 'field_57714db3280c7',
                    'label' => 'More description',
                    'name' => 'more_description',
                    'type' => 'wysiwyg',
                    'instructions' => '',
                    'required' => 0,
                    'conditional_logic' => 0,
                    'wrapper' => array (
                        'width' => '',
                        'class' => '',
                        'id' => '',
                    ),
                    'default_value' => '',
                    'tabs' => 'all',
                    'toolbar' => 'full',
                    'media_upload' => 1,
                ),
            ),
            'location' => array (
                array (
                    array (
                        'param' => 'post_type',
                        'operator' => '==',
                        'value' => 'product',
                    ),
                ),
            ),
            'menu_order' => 0,
            'position' => 'acf_after_title',
            'style' => 'default',
            'label_placement' => 'top',
            'instruction_placement' => 'label',
            'hide_on_screen' => '',
            'active' => 1,
            'description' => '',
        ));
    	...