Translating Custom Fields
WordPress custom fields 101
Custom fields allow creating rich contents using WordPress. Some custom fields are created by plugins or the theme and some created by the user.
For example, our own WPML plugin uses custom fields for its navigation elements. It adds a custom field for the mini-home, section name and exclude-from-navigation settings. Other plugins, like WordPress SEO use custom fields to set the title and description of pages.
Plugins, such as Types, help manage custom fields. They create a fancy GUI and dress custom fields with special functionality. Types works together with WPML to make custom fields fully translatable.
How custom fields get translated by WPML
Since custom fields belong to individual posts or pages, they get translated without having to configure anything. When you create new translation for a post or page, it will already have its own custom fields. So, for instance if you’re using an SEO plugin which sets the title, you will enter one title for the English post and another title for the Spanish post.
This is a different case than translation of global texts which are not part of any post or page (like the site’s title or tagline). Any custom field gets translated without question.
How to include custom fields in ICanLocalize content translation
When your site’s contents are translated using ICanLocalize, WPML packs everything that needs translation and sends to ICanLocalize’s server. For this to happen, WPML needs to know which fields should be sent to translation.
Normally, it sends the page title and body but you can also tell it to translate other fields. To do this, go to the Content Translation screen and look for Plugins texts translation.

Custom field translation control in WPML
If your plugin’s name already appears there, just enable it. Otherwise, you can create this file for yourself and upload it.
Each entry in the file has 5 columns:
- Plugin name
- Field type
- Field name
- Description
- Synchronize(0) / translate(1)
Here is an example:
This is the file that comes with WPML for WPML. It tells it to translate the field called _cms_nav_section and to synchronize _top_nav_excluded and _cms_nav_minihome.
I actually dont want to translate custom fields. I have a custom post type which I want to exist in all translations but I want all translations to share the same custom field set. I dont see the option for syncing custom fields under Translation Sync.
Please help,
Thanks
I’m trying to implement this nice plugin to a future website (link on name) but I’m having a problem with it as it is not working well with a great custom fields plugin (Magic Fields). Magic Fields is more advanced than the one you’re using as example here and it works fine with WP3.
It shows ok when writing a custom template article, but when I try to make the translation of that article, it does not show me the custom template for that type of article, like in default language. As I think it works with More Fields, I guess it’s just a small issue. Can you please have a look on this bug?
Thanks! Florin
I’ve found that more people are encountering this issue and there is a fix to the plugin here:
http://forum.wpml.org/topic.php?id=457#post-2322
It would be nice to be integrated in future releases, as if we apply the fix, we can’t upgrade the plugin without re-editing on each upgrade.
Hello everyone!
I’m so glad I’ve found some help online…Wordpress seemed to be easy to use and configure but I realized there are so many little things that need modifications and I have no idea how to handle them. Thanks to you, I keep finding answers to my questions. Thank you so much for all the help!
Lilia Gephardt @ Cheap VPS
Hi,
The same query as @Temi – is there a way that custom field data from the “main language” page / post can be carried over to translated pages / posts?
All the product pages on my site have the various technical data attached as custom fields – would like to avoid having to re-enter all of them!
Thanks,
Matt.
Sorry – I should be better at searching the forums first: here’s the answer to my own question:
http://wpml.org/2009/09/creating-a-multilingual-product-catalog/
Matt.
The translation manager shows text area fields and text input fields. Will there be a future fix for this?