Hi Andreas,
You can allow the user to select one category per input box. Then enable the cloneable
setting and set the max_clone
setting to 3. Here is the sample code:
[
'name' => __( 'Taxonomy', 'your-text-domain' ),
'id' => $prefix . 'taxonomy_rbgrdv9a23p',
'type' => 'taxonomy_advanced',
'taxonomy' => ['category'],
'field_type' => 'select_advanced',
'clone' => true,
'max_clone' => 3,
],
Read more on this documentation https://docs.metabox.io/cloning-fields/