Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I followed this tutorial to create custom metaboxes.

It seems like qtranslate enables you to use shortcodes almost everywhere. For example:

Post titles:

<!--:en-->Cheng Feng Enterprises<!--:--><!--:zh-->鄭峰企業<!--:--><!--:es-->Cheng Feng Compania<!--:-->


[:en]My name is Alex Chen.

I provide Spanish-English-Chinese

translation services in Taiwan.

<a href=""><strong>I'm available for hire</strong></a>.


我提供西班牙語 - 英語 - 中國


<a href=""><strong>我可供租用</strong></a>.

None of these methods work for custom metaboxes.

Has anyone successfully integrated qtranslate with custom metaboxes?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

recently I used qtranslate with metaboxes.

In my function.php I added code for display n metaboxes by n languages, in the save data event, I use qtranslate_join, this function make the magic.

share|improve this answer
eaguilar: Could you describe it more detail please? –  user11079 Dec 13 '11 at 8:30
Could you please share the code its urgently required..?? –  Priya jain Jul 8 '14 at 11:54
Least helpful accepted answer EVER –  emersonthis Jul 25 '14 at 20:24

In the output of your metabox in the page you want this to appear in you should wrap it in __().

Maybe something like this:

echo __( get_post_meta( get_the_ID(), 'your_field' ) );
share|improve this answer
Thank you, this worked for me. I'm using the Genesis framework, so I used echo __(genesis_get_custom_field('my_custom_field')); –  Eystein Apr 26 '13 at 11:12

$meta = get_post_meta( $post->ID, 'Meta', true );
$lan = qtrans_getLanguage();
$meta_lan = qtrans_use( $lan, $meta, true );
echo $meta_lan;


then enter your custom field data using the qtranslate comments:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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