El loop lo hice en base al codex de WP: http://codex.wordpress.org/Function_...ime_Parameters
Código PHP:
Ver original
<?php function filter_where($where = '') { //posts in the last 24 Hours return $where; } add_filter('posts_where', 'filter_where'); $query = new WP_Query("cat=".$categoria.""); ?> <?php if(have_posts()) : ?><?php while($events_query->have_posts()) : $postnum = $postnum + 1; $events_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' ); ?>