WordPress.org

Support

Support » Plugins and Hacks » Hacks » Popular Post in the last 7 Days

Popular Post in the last 7 Days

  • Hey guys I’m having a problem with the following code, On my website at http://www.tek-bull.com I have a popular post sidebar, but the only problem is that since I have very old articles, those are the ones that come up. I’m trying to change the code so it only displays the most popular post in the last 7 days. Here is the code that I need to change this on. Any Help?

    “<?php
    query_posts(‘meta_key=post-counter&order=DESC&orderby=meta_value_num&
    showposts=5′);

    if (have_posts()) :
    $i = 1;
    while ( have_posts() ) : the_post()
    ?>”

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Popular Post in the last 7 Days’ is closed to new replies.