I’m trying to import content to an options page using a custom importer I developed. Here’s the ACF-relevant code I’m using within the importer:
update_field($selector, $field['value']['value'], 'options'); // Update the field
Before importing, I make sure to use the WPML admin language switcher to switch to the desired language. After importing, it properly updates repeaters and WYSIWYG fields for the desired language, but not the text field.
For example, if I upload a French translation of my options page content, everything gets populated as expected except for the text field. Instead, the English version gets its text field updated with the French content.
The weird thing is that the importer code above is used by both the WYSIWYG fields and the text fields… so there’s just some weird reason that it isn’t working properly for plain old text fields and I have no idea why.
Any suggestions or insight into this behavior would be GREATLY appreciated. Thanks all.
Making gutenprogress with my new site. All done with the block editor. I don't like it, but I can make it work. (There's a lot in life like that.) HOWEVER, @wp_acf is letting me create custom blocks that do exactly what I need. That's a good thing.