How to call correct pdf file for selected language
-
I have problem to configure this anchor tag below so href is correct depending on the selected language.
<?php echo __(“Download our brochure”, ‘dise’); ?>If I have the default language which is english and hit the anchor tag
I display the “/wp-content/uploads/2015/12/DISE_brochure_web_en.pdf” which is correct.But if I have selected another language for example spanish I want to display this pdf file “/wp-content/uploads/2015/12/DISE_brochure_web_es.pdf”
I have tried to WPML the href value like this ” class=”btn btn-link”><?php echo __(“Download our brochure”, ‘dise’); ?>
but then I only get this
Download our brochure
loosing the href valueCan somebody explain how to solve my problem.
//Tony
- The topic ‘How to call correct pdf file for selected language’ is closed to new replies.