Support

Account

Home Forums Bug Reports Taxonomy Term Fields do not save

Unread

Taxonomy Term Fields do not save

  • I seem to have found a bug: Fields in Taxonomy Terms do not save. I have the following code:

    
    register_field_group(array (
    		'id' => 'acf_category-options',
    		'title' => 'Category Options',
    		'fields' => array (
    			array (
    				'key' => 'field_53ede5ead6d45',
    				'label' => 'Visibility in Menu',
    				'name' => 'visibility_in_menu',
    				'type' => 'radio',
    				'required' => 1,
    				'choices' => array (
    					'main-menu' => 'Main Menu',
    					'secondary-menu' => 'Secondary Menu',
    					'hidden' => 'hidden',
    				),
    				'other_choice' => 0,
    				'save_other_choice' => 0,
    				'default_value' => 'main-menu',
    				'layout' => 'horizontal',
    			),
    			array (
    				'key' => 'field_53fafbd3dd5dd',
    				'label' => 'Layout Mode',
    				'name' => 'layout_mode',
    				'type' => 'radio',
    				'choices' => array (
    					'masonry' => '<span class="dashicons dashicons-tagcloud"></span> Grid',
    					'vertical' => '<span class="dashicons dashicons-editor-justify"></span> List',
    				),
    				'other_choice' => 0,
    				'save_other_choice' => 0,
    				'default_value' => 'vertical',
    				'layout' => 'horizontal',
    			),
    		),
    		'location' => array (
    			array (
    				array (
    					'param' => 'ef_taxonomy',
    					'operator' => '==',
    					'value' => 'b09_entry_cat',
    					'order_no' => 0,
    					'group_no' => 0,
    				),
    			),
    		),
    		'options' => array (
    			'position' => 'normal',
    			'layout' => 'no_box',
    			'hide_on_screen' => array (
    			),
    		),
    		'menu_order' => 0,
    	));
    

    That code displays some choices for the custom taxonomy “b09_entry_cat”. They show up, but if I edit them the changes won’t be saved… Can you reproduce this?

Viewing 1 post (of 1 total)

The topic ‘Taxonomy Term Fields do not save’ is closed to new replies.