Title: Sync advanced custom fields issue
Last modified: September 1, 2016

---

# Sync advanced custom fields issue

 *  [ratuspro](https://wordpress.org/support/users/ratuspro/)
 * (@ratuspro)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/sync-advanced-custom-fields-issue/)
 * Hello! Thanks for the awesome plugin you developed! It’s great!
 * However I’m having a small issue when I try to sync to custom post type. This
   is the situation:
    I’ve got a custom post type called ‘game’. I’ve used advanced
   custom fields to specify a form for this post type. In this form I’ve got some
   fields that I want to be shared between the translations of post. What I mean
   by this is that when I go to the en version of a post and try to change the field,
   let’s say, year, I would like to sync it with the other translations.
 * Currently the only change I’ve made to the normal setup is to add in the functions
   file this:
 *     ```
       add_filter( 'pll_copy_post_metas', 'copy_post_metas', 25, 2 );
   
       function copy_post_metas( $metas ) {
           return array_merge( $metas, array( 'year') );
       }
       ```
   
 * Am I missing something? Thanks in advance 🙂
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

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

 *  Thread Starter [ratuspro](https://wordpress.org/support/users/ratuspro/)
 * (@ratuspro)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/sync-advanced-custom-fields-issue/#post-7570543)
 * I’ve found out something that might help debbugging the problem.
    If I am on 
   the en ‘game’ post type editor, I change the year field and I press update, the
   field on the translations does not change. However if, in the same page without
   changing anything I press the update button again. The fields are propagated 
   and the values are synced between translations.
 * This might be stupid, I haven’t checked the code but can it be that the propagation/
   syncing is being done before the values are stored?
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/sync-advanced-custom-fields-issue/#post-7570742)
 * Hi!
 * There are known compatibility issues between Polylang and ACF (especially the
   free version). According to my tests, Polylang works better with ACF Pro. We 
   are also working to further improve the compatibility with ACF Pro in the future
   Polylang Pro 2.0.
 *  Thread Starter [ratuspro](https://wordpress.org/support/users/ratuspro/)
 * (@ratuspro)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/sync-advanced-custom-fields-issue/#post-7570761)
 * Hello and thanks,
 * I’ve guessed that this could be an issue. I’ve tried to workaround the problem
   and reached a new solution:
 * I’m now using 2 fields on the form and then would test the site language and 
   filter the content accordingly. But another problem arises: if I deactivate that
   custom post type on the polylang settings under ‘types of custom post types and
   taxonomy’ the site loses the feature to change languages on all the pages associated
   with that custom post type. Should I enable or disable another option?

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

The topic ‘Sync advanced custom fields issue’ is closed to new replies.

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

## Tags

 * [acf polylang](https://wordpress.org/support/topic-tag/acf-polylang/)

 * 3 replies
 * 2 participants
 * Last reply from: [ratuspro](https://wordpress.org/support/users/ratuspro/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/sync-advanced-custom-fields-issue/#post-7570761)
 * Status: not resolved