これについては本当に助けが必要です。
ショートコード間のコンテンツを抽出する機能があり[internet]blablabla[/internet]
ますpreg_match_all
function get_content($my_post) {
$post_id = $my_post; //$_GET["p"];
$queried_post = get_post($post_id);
$title = $queried_post->post_title;
preg_match_all('#\[internet\](.+)\[\/internet\]#', $queried_post->post_content, $matches);
//var_dump($matches[1][0]);
if ( is_single( ) ) {
echo '<br><br><h1>'.$matches[1][0].'</h1>';
echo '<br><br><a href="http://moldcell.info/ts/?p='.$my_post.'&'.$matches[1][0].'">get url</a>';
}
}
私のウェブサイトは 3 つの言語 (英語、ルーマニア語、ロシア語) に対応しています。のコンディショナルタグを入れるとqtranslate
翻訳されませんが、デフォルト言語の値が表示されます。
どうすれば翻訳できるようになりますか?
前もって感謝します。
PS : これを qtranslate サポート フォーラムに投稿しましたが、返信がありません。たぶん、SOの人々が私を助けることができます。