Merhaba arkadaşlar,
Şöyle bir kodum var:
<div class="last">
<h3 class="h3"> Recent Posts</h3>
<?php
$my_query = new WP_Query('post_type=customp&showposts=5');
while ($my_query->have_posts()) : $my_query->the_post();
?>
<div class="last">
<?php
if ( has_post_thumbnail() ) { ?>
<img class="thmb" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=80&w=90&" alt="<?php the_title(); ?> Recipe"/>
<?php } else { ?>
<img class="thmb" src="images/none.jpg" alt="" />
<?php } ?>
<h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php echo short_title('...', 5); ?></a></h3>
<p><span class="clock"> Date: <?php the_time('M - j - Y'); ?></span></p>
<p><span class="comm"><?php comments_popup_link('0 Comment', '1 Comment', '% Comments'); ?></span></p>
<div class="clear"></div>
</div>
<?php endwhile; ?>
</div>Burada, son 5 içeriği değil de, en çok yorumlanan 5 içeriği ya da hiç olmazsa rastgele 5 içeriği nasıl gösteririm?
Yardımlarınız için şimdiden teşekkürler...
--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 12:26:54 -->-> Daha önceki mesaj 11:38:27 --
Çözdüm arkadaşlar.
&orderby=comment_count veya rand ekleyince dediklerimi yapıyor.