

Thank you for reaching out to the WPML support!Īs I understand from your message, you have a link on a button like /simple-page in Dutch (original language) and the page in English (secondary language) is the same one, but with /en/ on it: /en/simple-page. With it, it defaults to 'en' since all content is translated from Dutch to English, but even then the English links always go to /en/ (root for the language) which makes me think it can not find the right translated page/post $translated = apply_filters('wpml_object_id', $postID, $post_type, false, 'en') Īdd_filter( 'vc_btn_a_href', 'wpml_vc_button_link' ) I am using this snippet in my child theme functions.php now I can not find the documentation for these filters/hooks I found this post that uses a VC filter for the button_href, which seem to work with the buttons, because I can update the URL, but it still doesn't work correctly. Last updated by Radu 1 year, 9 months ago.Ī colleague built a website in WPBakery using the total theme, and I am trying to fix some leftover bugs and inconsistencies, but I can not seem to get the links within the website right.Īll buttons and anchors in text fields will have the same href attribute as the original language it is translated from. This topic contains 3 replies, has 2 voices.
