Ver Mensaje Individual
  #9 (permalink)  
Antiguo 08/08/2011, 13:34
Avatar de Nekko
Nekko
Colaborador
 
Fecha de Ingreso: marzo-2008
Ubicación: Buenos Aires
Mensajes: 3.141
Antigüedad: 16 años, 1 mes
Puntos: 656
Respuesta: Mostrar entradas publicadas hoy en el index.. (?)

Necesitás reemplazar lo siguiente:
Código:
<?php if (have_posts()) : ?>
			
			<?php while (have_posts()) : the_post(); ?>
por esto
Código:
<?php $today = getdate();
$the_query = new WP_Query( 'year=' . $today["year"] . '&monthnum=' . $today["mon"] . '&day=' . $today["mday"] );
while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
Pero así como está si hoy no hay entradas, no te va a mostrar nada.

Para decirle qué debe mostrar, debés indicarlo después del endwhile.

http://codex.wordpress.org/The_Loop
__________________
Taller para crear themes wordpress desde cero | Presupuestos para trabajos particulares vía MP