Background of the issue:
I am using Bricks Builder with ACF and WPML. I have a CPT 'Cars' and taxonomies 'Car type & Car brand'. I am querying the taxonomies on the home page. When a car brand or type is updated, the term count updates in the default language 'English' but not in the translated language 'Arabic'.
For example, after removing a car assigned to the 'Nissan' brand, the term count updated in English but not in Arabic. I checked the term count in the admin dashboard for Arabic, and it says '1' but should be '0'.
I found that I can reset the terms count by going to WPML > Support > troubleshooting and pressing the 'Fix terms count' button.
However, the client updates Cars frequently, and I have to press 'Fix terms count' each time. I would like it to update by default if there is a solution for this.
You can recreate this by simply creating a CPT and a taxonomy for that CPT, adding some terms to that taxonomy, assigning posts to terms, and then change the posts term. You will notice in the admin dashboard in the translated terms that the count is not decreasing.
Symptoms:
The term count is not updating in the translated language 'Arabic' when a car brand or type is updated. The term count in the admin dashboard for Arabic shows '1' instead of '0'.
Questions:
How can I make the term count update automatically in the translated language?
Is there a way to avoid manually pressing 'Fix terms count' each time a car is updated?
I could replicate it on my test site. I've searched our internal records and found that this issue has been reported to us in the past and has already been escalated to our developers. The problem will be fixed in future versions of WPML. When the version with the fix is released, I'll update you here. Meanwhile, the only workaround I can suggest (and you know) is using the ' Fix terms count' button in the troubleshooting section.