wpml change category link to translated one

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

Please help.

Read more here: wpml change category link to translated one

Leave a Reply

Your email address will not be published. Required fields are marked *