跳过导航

Open

Reported for: Advanced Custom Fields Multilingual 2.1.4.2

Topic Tags: Compatibility

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

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 );
    

留下回复

紧扣主题并尊重他人。如果您需要帮助解决与本帖无关的问题,请使用我们的 Support Forum 开始聊天或提交票据。

您可以使用这些标签:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>