merhaba arkadaşlar elimdeki kullandığım kod ile son yorumları çekiyorum ve listeliyorum...
Fakat şöyle bir durum var ben yorum sıralamasını tam tersine çevirdim (bilerek yapıldı) yani şuanda en son yorumlar geldikce son yorumu atan kişi diyelim 500. sırada... ben bu 500 ü göstermek istemiyorum 500+1 den başlasın ve 501. yorumu 1.yorum gibi göstersin istiyorum.
Biraz karışık oldu ama yapabilecek wordpress ehli arkadaş varsa yardımcı olursa çok sevinirim
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="container" style="transform: none;">
<center>
<?php $comments = get_comments('status=approve&number=700'); ?>
<?php $comments = array_reverse($comments); ?>
<div class="cekilis">
<ul>
<?php foreach ($comments as $comment) { ?>
<li>
<a href="<?php echo get_permalink($comment->ID); ?>#comment-<?php echo $comment->comment_ID; ?>" title="on <?php echo $comment->post_title; ?>">
<?php echo strip_tags($comment->comment_author); ?>:
<?php echo wp_html_excerpt( $comment->comment_content, 35 ); ?>...
</a>
</li>
<?php } ?>
</ul>
</div>
</center>
</div>
<?php endwhile;else : ?>
<?php endif; ?>
get_comments kısmına offset eklemen faydalı olabilir.
--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 20:48:23 -->-> Daha önceki mesaj 20:48:06 --
truser söylemiş gerçi, aynen.