Custom Fields
Re-Envisioned
Support General Multiple taxonomy fields in one metabox not saving (only the last one)

  • Creator
    Topic
  • #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,
                ),
  • You must be logged in to reply to this topic.

Newsletter

Subscribe to our newsletter to receive news and tutorials for Meta Box and WordPress.


grid gear info copy caret-up caret-down trash