<?php
function filter_where($where = '') {
$where .= " AND post_date > '" . date('Y-m-d', strtotime('-2 days')) . "'";
return $where;
}
add_filter('posts_where', 'filter_where');
// Query posts
query_posts( 'posts_per_page=1' );
// The Loop
if (have_posts()) : while ( have_posts() ) : the_post();
echo '<h3>Recent News</h3>';
echo '<li>';
echo '<a href="';
the_permalink();
echo '">';
the_title();
echo '</a>';
echo '</li>';
endwhile; endif;
//remove the filter
remove_filter('posts_where', 'filter_where');
// Reset Query
wp_reset_query();
?>