Ya lo corregí
Código PHP:
Ver original<?php
function filter_where($where = '') {
//posts in the last 24 Hours
$where .= " AND post_date > '" . date('Y-m-d H:i:s', strtotime('-36 hours')) . "'"; return $where;
}
add_filter('posts_where', 'filter_where');
$query = new WP_Query("cat=".$categoria."");
?>
<?php if(have_posts()) : ?><?php while($query->have_posts()) : $query->the_post(); ?>
<h1 class="negrocentro"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
<?php endwhile; ?>
<?php endif; ?>
<?php
remove_filter( 'posts_where', 'filter_where' );
?>