Yöntemler bile emin doğru terminoloji ...
Burada orijinal çalışma kodu:
<a href="<?php bloginfo('url'); ?>">
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.png" alt="Polished Logo" id="logo"/></a>
<img src="<?php bloginfo('stylesheet_directory'); ?>/images/separator.png" width="2" height="59" alt="Line" class="logo_line"/>
<p id="logo_title"><?php bloginfo('description'); ?></p>
Ben sadece ana yürütmek istedim, bu yüzden bu yazdı:
<?
if ( $_SERVER["REQUEST_URI"] == '/' ){
echo '<a href="'.bloginfo('url').'">
<img src="'.bloginfo('stylesheet_directory').'/images/logo.png" alt="Polished Logo" id="logo"/></a>
<img src="'.bloginfo('stylesheet_directory').'/images/separator.png" width="2" height="59" alt="Line" class="logo_line"/>
<p id="logo_title">'.bloginfo('description').'</p>';
}
?>
Ama bloginfo() çıkışları ve diğer bildirimleri tamamen html etiketlerinin dışında ben oluşturduk. Örneğin ile bloginfo('stylesheet_directory') ben oluşturulan IMG etiketlerinin dışında dizinini gösterecektir.
Herhangi bir fikir? Görünüşe göre benim sözdizimi doğru ya da bir şey değildir ....