Bu bana mutlak odunum var!
PHP kod küçük bir pasajı var, <?php include('/includes/stuff.php'); ?>. Bütün yaptığı bir görüntü çıktı.
If I put this in the WP themes header.php or index.php files, it will never show up. Here is the actual code in my the themes index.php file:
<img src="<?php bloginfo('stylesheet_directory');?>/images/content-top.gif" alt="content top" class="content-wrap" />
<?php include('/includes/stuff.php'); ?> TEST TEST TEST //this is the custom code
<div id="content">
Aslında çalıştığında ama, bu gibi görünüyor:
<img src="http://www.bavarianblue.com/wp-content/themes/Polished/images/content-top.gif" alt="content top" class="content-wrap" />
<div id="content">
Bu sadece tamamen benim kodu yok sayar. Hiçbir hata, hiçbir şey.
Ben zaten dahil dosyaya dahil eğer ben işe alabilir tek zamandır. Örneğin, bir header.php bir features.php için dahil bulunmaktadır. Ben orada yer varsa, o amele para cezası. Ama orada istemiyorum, ben index.php lazım.
Bütün bir şey içerir veya bilmesi gereken bir wordpress yapılandırma çeşit var mı? Benim dosya (FTP) modifiye ediliyor doğruladı.
EDIT
Ben sadece boşuna, wordpress kodeksine açıklandığı gibi, get_template_part() çalıştı. İşte ben denedim pasajı:
<?php get_template_part( 'includes/stuff' ); ?>
Jared