Displaying most commented in two weeks
-
Hello, im currently using this code to display the most commented on my blog, any way to make it display the most commented articles in just two weeks instead from begining?
<?php $args = array( 'posts_per_page' => 5, 'orderby' => 'comment_count', 'order' => 'DESC' ); $recentposts = get_posts($args); foreach ($recentposts as $post) : setup_postdata($post); ?> <?php the_post_thumbnail(array(50,50), array ('class' => 'alignleft')); ?> <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> <?php endforeach; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Displaying most commented in two weeks’ is closed to new replies.