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<!--:-->

Widgets:

[:en]My name is Alex Chen.

I provide Spanish-English-Chinese

translation services in Taiwan.

<a href="https://wordpress.stackexchange.com/questions/25052/mailto:alex@alexchen.info"><strong>I'm available for hire</strong></a>.

[:zh]我的名字是亞歷陳。

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

在台灣的翻譯服務。

<a href="https://wordpress.stackexchange.com/questions/25052/mailto:alex@alexchen.info"><strong>我可供租用</strong></a>.

None of these methods work for custom metaboxes.

Has anyone successfully integrated qtranslate with custom metaboxes?

2 s
2

<?php

$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:

<!--:ca-->CA<!--:--><!--:es-->ES<!--:--><!--:en-->EN<!--:-->

Leave a Reply

Your email address will not be published. Required fields are marked *