Posted by On Under  
Tags:
Using wp_postviews
<?php bloginfo('name'); ?>
cat_ID; $posts = get_posts('numberposts=6&offset=0&orderby=post_date&order=DESC&category='.$category); $count = 0; foreach ( $posts as $post ) { if ( $post->ID == $this_post->ID || $count == 5) { unset($posts[$count]); }else{ $count ++; } } ?>

Related Posts

Ads