Overview of the Issue
When using Advanced Custom Fields with WPML, taxonomy fields assigned to custom post types may appear blank in secondary languages. This occurs despite setting the field to “Copy” or “Copy Once”.
Workaround
This issue is fixed in Advanced Custom Fields Multilingual 2.1.5. Updating solves it on your site, so you only need this workaround if you can’t update yet.
Please, make sure of having a full site backup of your site before proceeding.
- Open …/wp-content/plugins/acfml/classes/class-wpml-acf-worker.php file.
- Look for line 80.
- Replace:
$metaValue = get_metadata( $metaType, $objectToId, $metaKey, true );
- With:
wp_cache_delete( $objectToId, $metaType. '_meta' ); $metaValue = get_metadata( $metaType, $objectToId, $metaKey, true );