Ver Mensaje Individual
  #4 (permalink)  
Antiguo 04/09/2012, 03:59
wordpressero
 
Fecha de Ingreso: agosto-2012
Mensajes: 14
Antigüedad: 11 años, 8 meses
Puntos: 0
Respuesta: ¿Cómo mostrar dos columnas de entradas en WordPress‏‏?

Bien, he conseguido hacer lo de las categorías y separar los posts en dos columnas pero aún me falla algo: los posts van en zig-zag:



Este es mi código:

Código:
<?php if (have_posts()) : ?>
<div>
<?php query_posts( ‘cat=3&posts_per_page=1′ );
while (have_posts()) : the_post(); ?>

<div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
<h2><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></a></h2>
<div><?php the_excerpt(); ?></div>
</div>
<?php endwhile; ?>
</div>
<div>
<?php query_posts( ‘cat=4&posts_per_page=1′ );
while (have_posts()) : the_post(); ?>

<div <?php post_class() ?> id=”post-<?php the_ID(); ?>”>
<h2><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></a></h2>
<div><?php the_excerpt(); ?></div>
</div>
<?php endwhile; ?>
</div>
<?php else : ?>
No hay nada
<?php endif; ?>
¿Cómo podría conseguir que estén alineados?

¡Gracias otra vez por vuestra ayuda! ;)