Merhabalar,

Şu kodda gösterdiğim yere tema adresi gelecek ancak php ile çektirmek istiyorum, nasıl yapabilirim. Kodu biliyorum ancak php bilmediğim için eklerken syntax hatası yapıyorum ve çalışmıyor.

Yani şunu:
bloginfo('template_directory');

Eklenecek kod:
function buy_store( $atts, $content = null ) {
extract(shortcode_atts(
array(
"steam" => '',
),
$atts));
if($steam) $steam_img="
\"Steam
";
if(!$steam) $steam_img="";
return '
'.$steam_img.'
';
}
add_shortcode( 'store', 'buy_store' );


Kodda belirttiğim yere ekleyip temanın içindeki görsel çekilecek.