Support General Cloned field always generates 12 new cloned fields Reply To: Cloned field always generates 12 new cloned fields

#11805
thomassultanathomassultana
Participant

Thats ok, i got worried that support disappeared. Im using latest version of meta box. I have the following extensions as well, fully updated:

term meta
include exclude
columns

Code is below:

$meta_boxes[] = array(
    'id' => 'restriction_targeting',
    'title'      => esc_html__( 'Targeting', 'your-prefix' ),
    'post_types' => array( 'restrictions' ),
    // List of meta fields
    'fields'     => array(
        array(
            'name'       => esc_html__( 'Categories', 'your-prefix' ),
            'id'         => $prefix . 'categories',
            'type'       => 'taxonomy_advanced',
            'taxonomy'   => 'product_cat',
            'clone'        => true,
            'field_type' => 'select_tree',
            'query_args' => array(),
        ),
    )
);