2016-04-22 12 views
0
<img src="<?php echo $newurl; ?>" alt="01-slide-Eurasia" width="120" height="90" /> 


<?php echo do_shortcode('[simple_tooltip content="Click Now to Download"]' . $f . '[/simple_tooltip]'); ?> 

私は試みたが、エラーを取得し<img src="<?php echo $newurl; ?>" alt="01-slide-Eurasia" width="120" height="90" />埋め込みPHPのショート

に置き換えるに$f必要性を必要とします。助けてください

答えて

0

php変数はエコーされてはいけませんが、文字列に連結されている必要があります。

<?php echo do_shortcode('[simple_tooltip content="Click Now to Download"]<img src="'.$newurl.'" alt="01-slide-Eurasia" width="120" height="90" />[/simple_tooltip]'); ?> 
+0

ありがとう –