1

i need to translate the_title().

I am using code:

<?php _e(the_title()); ?>

but not working ... any ideas ?

1

Since, 'the_title()' is not a static word, you can't directly translate it. Its value can be dynamic and saved in the database. So, you can either use plugins like 'WPML', 'qTranslate' or just learn how to do translation for the values which are saved in database.

2
  • Hi thanks for answer. Where to find about: " learn how to do translation for the values which are saved in database." – andys Sep 4 '14 at 18:34
  • I have done translation for hardcoded words in the code, so far. But have never done translation for dynamic words like 'the_title()'. See, if you can spent some tome to figure out how such plugins do this (as far as I know, they save the translation in the database). You can do some research over any free plugin like qTranslate wordpress.org/plugins/qtranslate – Domain Sep 4 '14 at 19:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.