Dear Chouby, Dear Quelvin,
First of all, polylang is really an awesome plugin.
I think I have a similar problem to Quelvin's and have found no solution so far. If you could help me that would be great. I will try to give you as much informations as possible.
I am using the same plugin called types or wp-types (http://wp-types.com/ or http://wordpress.org/plugins/types/) and created a custom post type with custom fields on it and the synchronisation doesn't work well. You can find the website here:
http://server42.cyon.ch/~elsaswit/elsa_switzerland/fkar4daww2/suisse/
1. What I did:
1.1 I created a custom post type called "events" (see PDF)
1.2 I created a custom field group called "Events informations" with (see PDF)
- various custom fields in it, most of them being required
- the custom post type "events" selected so theses custom fields appear on it
1.3 I added to my child theme functions.php the following
add_filter('pll_copy_post_metas', 'copy_post_metas');
function copy_post_metas($metas) {
return array_merge($metas, array('wpcf-starting_date_time', 'wpcf-ending_date_time', 'wpcf-status', 'wpcf-cost_type', 'wpcf-member_fee', 'wpcf-non_member_fee', 'wpcf-currency', 'wpcf-registration', 'wpcf-registration_email', 'wpcf-registration_link', 'wpcf-contact', 'wpcf-website_address', 'wpcf-website_yes_no', 'wpcf-website_address'));
}
1.4 I created a new post of the custom post type "events" called event5-en in english, filling the various custom fields of in "Events informations" (see images in PNG)
1.5 I added a german translation of the post, calling it "event5-de". (see image in PNG)
2. What happens:
2.1 For the english post, the "Event informations" custom fields appear both
- under their section, and
- as individual user added custom fields just below
2.1 For the post in german
- the "Events informations" are empty and have to be filled again
- the "Events informations" custom fields of the english post are copied as individual user added custom fields just below
3. Note: I tried everything from deactivating/activating sync options in settings, adding or removing the pll_copy_post_metas filter in functions.php and I really don't understand what is happening and what to do. (current status of my "Settings" tab of polylang in PDF here).
Thanks a lot
Ogma