Overview of the Issue
When using the RealHomes theme with WPML, you might experience the following issue: the translated property page shows the agent of the original language, also when the agent has a translation. The name and the link lead to the original agent.
Workaround
Make WPML store the ID of the translated agent:
- Go to WPMLSettings and open the Custom XML Configuration tab.
- Paste the code below and click Save.
- Update the original property, so WPML updates its translations.
XML
<wpml-config> <custom-fields> <custom-field action="copy" type="post-ids" sub-type="agent">REAL_HOMES_agents</custom-field> </custom-fields> </wpml-config>