Quiero mostrar todos los post del dia con el siguiente codigo muestro 5 post:
Cita:
quiero saber como seria para filtrarlo por dia! $args = array(
'category_name'=> $title,
'posts_per_page' => 5,
'order_by'=>'date',
'paged' => get_query_var('paged')
);?>
<?php $query = new WP_Query( $args );?>
<?php //query_posts('category_name='.$title.'&posts_per_pa ge=5&order_by=date'); $values1="";$values="";$o=0;?>
<?php if ($query->have_posts()) : ?>
<?php while ($query->have_posts()) : $query->the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
<?php the_excerpt();?>
<br />
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>
'category_name'=> $title,
'posts_per_page' => 5,
'order_by'=>'date',
'paged' => get_query_var('paged')
);?>
<?php $query = new WP_Query( $args );?>
<?php //query_posts('category_name='.$title.'&posts_per_pa ge=5&order_by=date'); $values1="";$values="";$o=0;?>
<?php if ($query->have_posts()) : ?>
<?php while ($query->have_posts()) : $query->the_post(); ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
<?php the_excerpt();?>
<br />
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>