Monday, 15 March 2010

metadata - WordPress non translatable content on a translatable custom post (via WPML) -


I was recently implementing a custom post type in WordPress, and WPML was added so that I could change its title and translation I can; material.

This post type (city) also has some custom metabox (metabox.io) such as:

  • Coordinate
  • isFeatured
  • < Li> Address
  • etc ...

Now I am confronted that these custom fields are deposited against the post id, and should be added for each Languages ​​(different languages ​​are separate post IDs) It is neither convenient nor practical, given that I now duplicate all the values ​​from these areas in each language If there is a mistake then there may be different coordinates in different languages ​​in the same city.

My question is, what would be the best way to deal with this problem? How can one set of metadata relate to all translations of the same post? In this way, I need to add it once for every city, and if needed, edit it in one place.

Thanks,


No comments:

Post a Comment