I am using Advanced Custom Field and to make a dynamic category link I used
<a href="/?cat=<?php the_field('vltu-link'); ?>" ></a>
the php code above return category id.
it’s working fine. but the problem is when I click on a translated category link, WPML changes it to primary category link.
i.e : my primary category id is 10 and it’s translated one is 11. the link that I made show /?cate=11 but when I click WPML change it to /?cate=10
Read more here: wpml change category link to translated one