I currently use this code to get the WP-Post views plugin’s views, but it does not support a date. So i want to transfer over to this plugin and include a date of last week.
<?php $cat_id='-8';//the category ID $limit = get_option('posts_per_page'); query_posts(array('category__and'=>array(276), 'showposts'=>8,'more' => $more = 0, 'meta_key' => 'views', 'orderby' => 'meta_value_num', 'order' => 'DESC', )); ?>
How, and where and what do i have to put in the above code for it to work?
- The topic ‘[Plugin: WordPress Popular Posts] Template query for most viewed of last week post’ is closed to new replies.