Home›Support›English Support›[Resolved] Selected agent on french version does not hold when I update the french translation
[Resolved] Selected agent on french version does not hold when I update the french translation
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue where the selected agent, 'Arnaud Homburger', does not remain assigned to the French versions of properties after updating translations. This requires manual reassignment, which is time-consuming. Solution: We advised the client to check the configuration of the agent custom field in WPML settings and ensure it is set to 'Copy'. This can be done by following the guide at https://wpml.org/documentation/getting-started-guide/translating-custom-fields/. Additionally, we noted that the Houzez theme is currently incompatible with WPML, which may require manual configuration or assistance from the theme's author. We also referenced an existing errata page that might be relevant: https://wpml.org/errata/houzez-translated-agent-is-not-assigned-to-translated-properties/.
If this solution does not resolve the issue or seems outdated, we recommend opening a new support ticket. We also advise checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at https://wpml.org/forums/forum/english-support/.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
"Hi, I got their reply and now we are working on it. Regards,"
I really hope the issues can be resolved quickly so that my website is no longer affected.
In addition, I noticed a recurring problem: although the agent "Arnaud Homburger" is not assigned to French properties, the 78 properties that appear on the English "About Us" page are now also showing on the French "À propos" page. This issue has been inconsistent – they appear, disappear, and reappear again.
Also, the charts are currently not displaying on the French "À propos" page. Please refer to the attached screenshot. I believe this is a repeat of a past issue that was never fully resolved at the root, which is likely why it’s happening again.
I sincerely hope we can now reach a final and lasting solution. These ongoing problems have been extremely time-consuming and are affecting my productivity in other areas of my work.
Languages: English (English )French (Français )Arabic (العربية )
Timezone: Pacific/Easter (GMT-06:00)
Thanks for the follow-up, yes, that tracks with my latest reply,
We had to retest all the issues you and other users reported before with the newest versions of the theme and WPML first.
I'm downloading another copy of you site too for reference,
The Agent issue is fixed, turns out the code was indeed changed by Waqas, but the settings we applied with the workaround conflicts with the change,
So I made the necessary fields translatable, now if I assign an agent and then translate the property, the agent ID will be translated so it shows the french agent ID,
I see. Thanks for the update. I just have a few quick follow-up questions:
1. Has Houzez officially been “unflagged” and is now considered compatible with WPML again?
2. Do you have any update regarding the missing charts on the French “À propos” page?
3. I noticed that “Arnaud Homburger” is currently not assigned as the agent on my French properties, although the option is available and "Arnaud Homburger" is assigned on the english properties. Should I go ahead and assign myself manually to the 78 listings again?
4. Moving forward, will I need to assign “Arnaud Homburger” manually on French properties, or will the assignment carry over automatically from the English properties? (The latter would make more sense to me.)
Thank you again for your assistance and continued support!
1- Houzez will be unflagged by the time we address all the issues, it should be done soon.
2- For the graphs that are not showing, I tried duplicating the english agent to test this further, but that part is not showing in english either : hidden link
I'm finding a hard time to find where this chart is configured, where do you usually edit this part? Or is it added automatically in function of the property the agent has?
How could I add it for exemple to the duplicate agent that I created.
3- When you say the French agent is not assigned, do you mean in the backend? if so, that is expected as with how compatibility work, WPML is automatically adjusting the agent to match the translation language, you dont have to assign it manually from the backend.
Hence why the french agent is showing 78 properties : hidden link
It will always do this autoamtically from now on as it should be.
4- Yes automatically, the agent is applied in the correct language upon translating a property.
2. I remember having a similar conversation with you a few month ago about these charts. It is added automatically in function of the property the agent has. The theme came out with these graphs. I can see them on the english page "About us" but ont on the french page "A propos".
3. Yes, I mean in the back end. I see that "Arnaud Homburger" is not selected on the french properties, even though the properties are showing on the front end. For clarity, I believe the agent "Arnaud Homburger" should show in the french backend (maybe locked; meaning with no possibility to unselect on the french version as it is supposed to match the english version.
This is yet another compatibility issue caused by the recent update done by houzez,
You could share my findings with Waqas if you'd like (to get a faster reply) or I could add it to our compatibility track
Long story short, in wp-content\themes\houzez\template-parts\realtors\agent\single-agent-v1.php , the tempalte you are using to list your options (Stats, reviews,listings...), in line 70 :
On translated pages, get_the_ID() gives the translated agent post ID, but Houzez_Query::get_agent_properties_ids_by_agent_id() likely only retrieves listings associated with the original/default language agent ID.
The translated ID no longer have associated posts to add in the stats.
Helped load the data (but this is not a recommended solution as it is for testing only),
And for the agent not selected in the backend, is the field greyed out? if yes, that means you cannot edit it and it is using the translated agent automatically, that's how it should work with the current compatibility.
I thought I replied to your last message, sorry for that,
So as usual, the stats issue got escalated and we need to debug it further, soon I will get a temporary fix,
Then we contact Houzez to apply a permanent fix.
For the agent being greyed out, this is expected, you either have the ability to manually change it or let WPML assign it to you, the recommended method is to let WPML assign it automatically.
Changing it manually conflicts with how houzez handles compatibility with WPML in this matter,
In regard to the agent assignment, you asked if the agent was greyed out for the french properties and I responded to you if you could check that yourself as you had my credentials. (I just wanted to make sure I did not respond something wrong to you).
However, I verified that at that time and again now, and "Arnaud Homburger" is not greyed out on the agent assignment for the french properties, it's simply not selected.
I don't think this is a normal behavior since the properties are shown on the "A propos" french page (which is what I want). Also, I can still select manually "Arnaud Homburger" and assign myself as the agent for the french properties, with not effect on the "A propos" french page on the front end.
So to me, there is definitely something that does not behave as expected. Are you sure you did not find a work around that is not completely done right?
I am just trying to get things done the proper way so this issue can be resolved permanently and I don't have to come back to you in a few weeks/months and we can close that chapter for good.
The reported issues are now resolved, could you please double check?
Stats are now working, and from now on, French properties will have the agent field greyed out in the backend (translated in the background using the new updates Waqas implemented)