View Single Post
Old 11-25-2010, 11:26 PM  
garce
Confirmed User
 
garce's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: Toronto
Posts: 7,103
Quote:
Originally Posted by harvey View Post
here you have:

Code:
<?php
function filter_where($where = '') {
  //posts for last month
  $where .= " AND post_date > '" . date('Y-m-d', strtotime('-30 days')) . "'";
  return $where;
}
add_filter('posts_where', 'filter_where');
query_posts('numberposts=10&orderby=rand');
?>
You always come through. I will give this a shot. Thank you in advance.
garce is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote