Multiple taxonomy fields in one metabox not saving (only the last one)

Support General Multiple taxonomy fields in one metabox not saving (only the last one)

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #18056

    Hello,

    I have a metabox where I want the user to pick 3 different categories for the post. I'm only using the category taxonomy, and sub-categories as sort of 'custom taxonomies'. The peculiair thing is, only the last taxonomy field is saving. How I can I make them save all of them?

         array (
                    'id' => $prefix . 'type_',
                    'type' => 'taxonomy',
                    'name' => esc_html__( 'Type', 'text-domain' ),
                    'query_args' => array(
                        'include' => '3,4,5,6,7',
                    ),
                    'taxonomy' => 'category',
                    'field_type' => 'select',
                    'columns' => 3,
                ),  
                array (
                    'id' => $prefix . 'materiaal',
                    'type' => 'taxonomy',
                    'name' => esc_html__( 'Material', 'text-domain' ),
                    'query_args' => array(
                        'include' => '13,14,15,16',
                    ),
                    'taxonomy' => 'category',
                    'field_type' => 'select',
                    'columns' => 3,
                ),          array (
                    'id' => $prefix . 'aandrijving',
                    'type' => 'taxonomy',
                    'name' => esc_html__( 'Engine', 'text-domain' ),
                    'query_args' => array(
                        'include' => '9,10,11',
                    ),
                    'taxonomy' => 'category',
                    'field_type' => 'select',
                    'columns' => 3,
                ),
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.