How to translate a custom field with qTranslate X?
-
Hi,
I have a custom field (created with ACF – Advanced Custom Filed plugin).
In my theme I call it like that:<p><?php the_field ( 'description' ); ?></p>
How can I translate this custom field with qTranslate X?
I’ve tried everything …
In the template file I’ve tried:
<p><?php __(the_field ( 'description' )); ?></p>
<p><?php _e(the_field ( 'description' )); ?></p>
<p><?php the_field __(( 'description' )); ?></p>
<p><?php the_field _e(( 'description' )); ?></p>
IN the input field I’ve tried:
<!–:en–>English Text<–:–><!–:de–>Deutsch Text<–:–>
[:en]English Text[:de]Deutsch… but nothing works. So what should I do to make this custom field translatable with qTranslate X?
- The topic ‘How to translate a custom field with qTranslate X?’ is closed to new replies.