Sağolun.
Yorumları listelemeyle ilgili bölümü yorumlar.php dosyası yapıp include ettim tekil yazıya.
Ama yapılmış yorumları göstermedi nedense. Aynen div1de verdiğiniz kodları kopyaladım yorumlar.php'ye.
Temanın orjinalinde olan şu kodları kullandım;
Alıntı
<?php // Do not delete these lines
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if (!empty($post->post_password)) { // if there's a password
if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
?>
<p class="nocomments">Konu Şifreli olduğu için yorumlar gözükmemektedir.<p>
<?php
return;
}
}
/* This variable is for alternating comment background */
$oddcomment = 'yorum2';
?>
<!-- You can start editing here. -->
<?php /* Changes every other comment to a different class */
if ('yorum2' == $oddcomment) $oddcomment = '';
else $oddcomment = 'yorum2';
?>
<?php endforeach; /* end for each comment */ ?>
</ol>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ('open' == $post->comment_status) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<p class="nocomments">Konu Yorumlara Kapalıdır.</p>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
Parse error: syntax error, unexpected T_ENDFOREACH hatası verdi.
İncelemek isterseniz, Beyaz'ın pippy temasını editlemeye çalışıyorum. İndirip bakabilirsiniz.