polylang not syncing custom fields
-
I really love your plugin. This is the first time I’m creating a multilingual website in WordPress and I must say your plugin goes far beyond any expectations I had.
There’s one thing I will need a bit of help with though. I have read the documentation and searched the forums, but I haven’t managed to find a way to sync the fields of my custom types. I have polylang 0.9.1 installed.
I’m using WP-Types (http://wp-types.com/) to create my custom types and fields, but that shouldn’t matter. I have some experience with creating custom types without any plugins so I kind of know what’s (supposed to be) happening behind the scenes.
I have a custom post type named ‘office’ which has a custom field called ‘wpcf-address’ (this is the actual meta_key in the DB. I have looked it up)
In my functions.php I have written the following code:
add_filter('pll_copy_post_metas', 'copy_post_metas'); function copy_post_metas($metas) { return array_merge($metas, array('wpcf-address')); }
So next I created a new office in English. Filled out the address field and clicked Publish. Then I clicked ‘add new’ next to the language I wanted to translate it to, but all fields are empty, while I expect the address field to be populated with the previous data.
What could I be doing wrong?
- The topic ‘polylang not syncing custom fields’ is closed to new replies.