Support

Account

Forum Replies Created

  • Well, thanks anyway. I ended up renaming the field and that solved it. Guess we’ll never know what was the problem.

  • I don’t know anything about sub-fields.

    I generated the entire field group for you in php (it’s in a foreign language):

    We are talking about the very first item ‘label’ => ‘Tagsági forma’,
    ‘name’ => ‘tagsagiforma’

    It looks like any other field, I have fields with checkboxes and select type inputs, but they all work. Also tried re-ordering it.

    add_action( 'acf/include_fields', function() {
    	if ( ! function_exists( 'acf_add_local_field_group' ) ) {
    		return;
    	}
    
    	acf_add_local_field_group( array(
    		'key' => 'group_634d783826828',
    		'title' => 'Felhasználó extra információk',
    		'fields' => array(
    			array(
    				'key' => 'field_6357a757b976d',
    				'label' => 'Tagsági forma',
    				'name' => 'tagsagiforma',
    				'aria-label' => '',
    				'type' => 'radio',
    				'instructions' => 'A felhasználó tagsági formája',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'choices' => array(
    					'Egyéni tag' => 'Egyéni tag',
    					'Céges tag' => 'Céges tag',
    					'Pártoló tag' => 'Pártoló tag',
    					'Tiszteletbeli tag' => 'Tiszteletbeli tag',
    					'Tiszteletbeli alelnök' => 'Tiszteletbeli alelnök',
    				),
    				'default_value' => '',
    				'return_format' => 'array',
    				'allow_null' => 0,
    				'other_choice' => 0,
    				'layout' => 'vertical',
    				'save_other_choice' => 0,
    			),
    			array(
    				'key' => 'field_6357ac1d21e26',
    				'label' => 'Egyéni vállalkozó v. magánszemély? (Csak Egyéni tag esetén értelmezendő)',
    				'name' => 'ev',
    				'aria-label' => '',
    				'type' => 'select',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => array(
    					array(
    						array(
    							'field' => 'field_6357a757b976d',
    							'operator' => '==',
    							'value' => 'Egyéni tag',
    						),
    					),
    				),
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'choices' => array(
    					'Egyéni vállalkozó' => 'Egyéni vállalkozó',
    					'Magánszemély' => 'Magánszemély',
    				),
    				'default_value' => false,
    				'return_format' => 'array',
    				'multiple' => 0,
    				'allow_null' => 0,
    				'ui' => 0,
    				'ajax' => 0,
    				'placeholder' => '',
    			),
    			array(
    				'key' => 'field_6357ae2621e27',
    				'label' => 'Cégnév',
    				'name' => 'cegnev',
    				'aria-label' => '',
    				'type' => 'text',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'maxlength' => '',
    				'placeholder' => '',
    				'prepend' => '',
    				'append' => '',
    			),
    			array(
    				'key' => 'field_6357afc99687e',
    				'label' => 'Telefonszám',
    				'name' => 'telefonszam',
    				'aria-label' => '',
    				'type' => 'text',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'maxlength' => '',
    				'placeholder' => '',
    				'prepend' => '',
    				'append' => '',
    			),
    			array(
    				'key' => 'field_643fb0d418590',
    				'label' => 'Telefonszám (vonalas)',
    				'name' => 'telefonszam_2',
    				'aria-label' => '',
    				'type' => 'text',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'maxlength' => '',
    				'placeholder' => '',
    				'prepend' => '',
    				'append' => '',
    			),
    			array(
    				'key' => 'field_6357afd39687f',
    				'label' => 'Beosztás',
    				'name' => 'beosztas',
    				'aria-label' => '',
    				'type' => 'text',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'maxlength' => '',
    				'placeholder' => '',
    				'prepend' => '',
    				'append' => '',
    			),
    			array(
    				'key' => 'field_6357ae3521e28',
    				'label' => 'Adószám',
    				'name' => 'adoszam',
    				'aria-label' => '',
    				'type' => 'text',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'maxlength' => '',
    				'placeholder' => '',
    				'prepend' => '',
    				'append' => '',
    			),
    			array(
    				'key' => 'field_634d7887cddb9',
    				'label' => 'Tagozatok',
    				'name' => 'tagozatok',
    				'aria-label' => '',
    				'type' => 'checkbox',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'choices' => array(
    					'Vámtagozat' => 'Vámtagozat',
    					'Jövedéki Tagozat' => 'Jövedéki Tagozat',
    					'Környezetvédelmi Tagozat' => 'Környezetvédelmi Tagozat',
    					'Integrátori Tagozat' => 'Integrátori Tagozat',
    					'Informatikai Munkacsoport"' => 'Informatikai Munkacsoport"',
    					'Adóügyi Munkacsoport' => 'Adóügyi Munkacsoport',
    					'Nemzetközi Munkacsoport' => 'Nemzetközi Munkacsoport',
    					'Trade Compliance Munkacsoport' => 'Trade Compliance Munkacsoport',
    				),
    				'default_value' => array(
    				),
    				'return_format' => 'value',
    				'allow_custom' => 0,
    				'layout' => 'vertical',
    				'toggle' => 0,
    				'save_custom' => 0,
    				'custom_choice_button_text' => 'Add new choice',
    			),
    			array(
    				'key' => 'field_6357aea296874',
    				'label' => 'Irányítószám',
    				'name' => 'iranyitoszam',
    				'aria-label' => '',
    				'type' => 'text',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'maxlength' => '',
    				'placeholder' => '',
    				'prepend' => '',
    				'append' => '',
    			),
    			array(
    				'key' => 'field_6357aeac96875',
    				'label' => 'Település',
    				'name' => 'telepules',
    				'aria-label' => '',
    				'type' => 'text',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'maxlength' => '',
    				'placeholder' => '',
    				'prepend' => '',
    				'append' => '',
    			),
    			array(
    				'key' => 'field_6357aeb296876',
    				'label' => 'Utca, házszám',
    				'name' => 'utca',
    				'aria-label' => '',
    				'type' => 'text',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'maxlength' => '',
    				'placeholder' => '',
    				'prepend' => '',
    				'append' => '',
    			),
    			array(
    				'key' => 'field_6357aec896877',
    				'label' => 'Emelet, ajtó, stb.',
    				'name' => 'emelet',
    				'aria-label' => '',
    				'type' => 'text',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'maxlength' => '',
    				'placeholder' => '',
    				'prepend' => '',
    				'append' => '',
    			),
    			array(
    				'key' => 'field_6357aed596878',
    				'label' => 'Logó feltöltés',
    				'name' => 'logo',
    				'aria-label' => '',
    				'type' => 'image',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'return_format' => 'array',
    				'library' => 'all',
    				'min_width' => '',
    				'min_height' => '',
    				'min_size' => '',
    				'max_width' => '',
    				'max_height' => '',
    				'max_size' => '',
    				'mime_types' => '',
    				'preview_size' => 'medium',
    			),
    			array(
    				'key' => 'field_6357af0196879',
    				'label' => 'Fő tevékenység',
    				'name' => 'tevekenyseg',
    				'aria-label' => '',
    				'type' => 'text',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'maxlength' => '',
    				'placeholder' => '',
    				'prepend' => '',
    				'append' => '',
    			),
    			array(
    				'key' => 'field_6357af249687a',
    				'label' => 'Tevékenység leírás',
    				'name' => 'tevekenysegleiras',
    				'aria-label' => '',
    				'type' => 'textarea',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'maxlength' => '',
    				'rows' => '',
    				'placeholder' => '',
    				'new_lines' => '',
    			),
    			array(
    				'key' => 'field_6357af4a9687b',
    				'label' => 'Alkalmazottak száma',
    				'name' => 'alkalmazottak',
    				'aria-label' => '',
    				'type' => 'select',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'choices' => array(
    					'0-10 fő' => '0-10 fő',
    					'11-50 fő' => '11-50 fő',
    					'51-250 fő' => '51-250 fő',
    					'250 fő felett' => '250 fő felett',
    				),
    				'default_value' => false,
    				'return_format' => 'array',
    				'multiple' => 0,
    				'allow_null' => 0,
    				'ui' => 0,
    				'ajax' => 0,
    				'placeholder' => '',
    			),
    			array(
    				'key' => 'field_6357a920a5bd4',
    				'label' => 'Számlázási ciklus',
    				'name' => 'szamlaciklus',
    				'aria-label' => '',
    				'type' => 'select',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'choices' => array(
    					'Évente' => 'Évente',
    					'Fél évente' => 'Fél évente',
    				),
    				'default_value' => false,
    				'return_format' => 'value',
    				'multiple' => 0,
    				'allow_null' => 0,
    				'ui' => 0,
    				'ajax' => 0,
    				'placeholder' => '',
    			),
    			array(
    				'key' => 'field_6357af8b9687c',
    				'label' => 'Levelezési cím',
    				'name' => 'levelezes',
    				'aria-label' => '',
    				'type' => 'text',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'maxlength' => '',
    				'placeholder' => '',
    				'prepend' => '',
    				'append' => '',
    			),
    			array(
    				'key' => 'field_6357afab9687d',
    				'label' => 'Megrendelés szám',
    				'name' => 'megrendelesszam',
    				'aria-label' => '',
    				'type' => 'text',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'maxlength' => '',
    				'placeholder' => '',
    				'prepend' => '',
    				'append' => '',
    			),
    			array(
    				'key' => 'field_6357b5b74ff89',
    				'label' => 'Logó használat?',
    				'name' => 'logohasznalat',
    				'aria-label' => '',
    				'type' => 'true_false',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'message' => 'Az MVSZ a weboldalon megjelenítheti a logómat. (Ha ennek engedélyét utólag szeretné visszavonni, kérjük lépjen kapcsolatba munkatársunkkal)',
    				'default_value' => 0,
    				'ui' => 0,
    				'ui_on_text' => '',
    				'ui_off_text' => '',
    			),
    			array(
    				'key' => 'field_6357b487652c4',
    				'label' => 'Hír megjelenés?',
    				'name' => 'hirmegjelenes',
    				'aria-label' => '',
    				'type' => 'true_false',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'message' => 'Az MVSZ a weboldalon rövid hírt jeleníthet meg a csatlakozásomról.',
    				'default_value' => 0,
    				'ui' => 0,
    				'ui_on_text' => '',
    				'ui_off_text' => '',
    			),
    			array(
    				'key' => 'field_643fafdc0972f',
    				'label' => 'Megjegyzések',
    				'name' => 'megjegyzes',
    				'aria-label' => '',
    				'type' => 'textarea',
    				'instructions' => '',
    				'required' => 0,
    				'conditional_logic' => 0,
    				'wrapper' => array(
    					'width' => '',
    					'class' => '',
    					'id' => '',
    				),
    				'default_value' => '',
    				'new_lines' => '',
    				'maxlength' => '',
    				'placeholder' => '',
    				'rows' => '',
    			),
    		),
    		'location' => array(
    			array(
    				array(
    					'param' => 'user_form',
    					'operator' => '==',
    					'value' => 'all',
    				),
    			),
    		),
    		'menu_order' => 0,
    		'position' => 'normal',
    		'style' => 'default',
    		'label_placement' => 'top',
    		'instruction_placement' => 'label',
    		'hide_on_screen' => '',
    		'active' => true,
    		'description' => '',
    		'show_in_rest' => 0,
    	) );
    } );
  • Okay, so I double-checked again, for my membership_description meta key I get this field key reference: _membership_description right?
    it comes with the value: field_6357a757b976d

    Triple-checked there are no other meta_keys with this name for the examined user_id.

    I listed all of my users in phpmyadmin, and the key-value pair matched for each and every user, so everyone has the same DB entries.

    I tried:

    1. Deleting the field key reference value in the database
    2. Deleting the the field key value in the database
    3. Refreshed this user’s wp profile and found that the value was set to the default option, like it should.

    Then:
    4. In the wp profile I chose a different option and saved it.
    5. The profile was still showing the default value, so no change, but in the database I see the new value now, the one that I just chose and saved.
    6. Also, when I saved the profile the field key reference value was reverted to its original value: field_6357a757b976d

    But you are right, this only happens with the imported users. Those who registered themselves the issue doesn’t occur.

    So what else could be blocking this wp user profile field (and only this) to get the right value from the database?

    Other fields like this work fine.

Viewing 3 posts - 1 through 3 (of 3 total)