Can anyone tell me how to adjust this code to get popular post in 7 days

<?php
      query_posts('meta_key=post_views_count&posts_per_page=3&orderby=meta_value_num&
      order=DESC');
      
      if (have_posts()) : while (have_posts()) : the_post();
   ?> <ul class="rpul">
    <li>	<div class="class="post-thumb wp-post-image" style=' '> <?php if ( has_post_thumbnail() ) : ?>
            <?php the_post_thumbnail('thumbnail') ?>
        <?php endif ?> </div><div class='cat-post-text'>
        	<h1> <a href="<?php the_permalink(); ?>"><?php the_title();
     ?>

The above code works well but I want to modify it to show only popular post in 7 days. Thanks

why is no one replying my request or did I go wrong?

I just think from what you posted no one really understands what you want, what defines a popular post. A guess would be a change to you sql adding something like
WHERE popular='yes';

Sponsor our Newsletter | Privacy Policy | Terms of Service