if(preg_match("/$/", $_SERVER['REQUEST_URI'])){
echo 'footer kodları buraya';
}else{
echo 'diğer kodlar buraya';
} <?php if(preg_match("/$/", $_SERVER['REQUEST_URI'])){ ?>
<div id="footerustu">
<div id="testimonialpart">
<?php echo do_shortcode('[testimonial_rotator id=271]') ?>
</div>
</div>
<?php
}else{
echo 'diğer kodlar buraya';
}
?>
Şimdi hata vermedi ama kod tüm sayfalarda gözüküyor, sadece ana sayfada gözükmesini istiyorum ben.
--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 22:36:26 -->-> Daha önceki mesaj 22:31:42 --
Kodlardan anlaşıldığı üzere sisteminiz WP herhalde. Bu şekilde deneyin.
"Parse error: syntax error, unexpected 'endif' (T_ENDIF) in /home/.."
hatası çıkıyor. Evet sistem WP ama frontpage ve anasayfa gibi davranmıyor şu anki anasayfam. Bi eklentinin sayfasını ana sayfa yaptım o yüzden frontpage.php ya da herhangi bir page.php işime yaramıyor.