Title: Synchronizing custom fields
Last modified: August 30, 2016

---

# Synchronizing custom fields

 *  [Wibbskii](https://wordpress.org/support/users/wibbskii/)
 * (@wibbskii)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/synchronizing-custom-fields/)
 * I try to use the code
 *     ```
       add_filter('pll_copy_post_metas', 'copy_post_metas');
       function copy_post_metas($metas) {
           return array_merge($metas, array('wpcf-visa-ecodesign-etikett-1'));
       }
       ```
   
 * to synchronize some custom fields through the languages. I get it to work on 
   new posts but not on the post that is already created.
    Do I have to do something
   for it to work on already created posts?
 * [https://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

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

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/synchronizing-custom-fields/#post-6700715)
 * Hi!
 * You need to resave your existing post. The custom field from the post being saved
   will propagate to its translations.
 *  Thread Starter [Wibbskii](https://wordpress.org/support/users/wibbskii/)
 * (@wibbskii)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/synchronizing-custom-fields/#post-6700797)
 * I have tried that several times and it works sometimes. I have my site in 4 languages
   and it works with some languages not all.
 * If i have several different custom fields I want to sync, do I use the code several
   times or can I have many arrays instead?

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

The topic ‘Synchronizing custom fields’ 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

 * [custom fields](https://wordpress.org/support/topic-tag/custom-fields/)
 * [synchronize](https://wordpress.org/support/topic-tag/synchronize/)

 * 2 replies
 * 2 participants
 * Last reply from: [Wibbskii](https://wordpress.org/support/users/wibbskii/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/synchronizing-custom-fields/#post-6700797)
 * Status: not resolved