Quote:
Originally Posted by harvey
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.