Ver Mensaje Individual
  #6 (permalink)  
Antiguo 04/09/2012, 06:05
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‏‏?

Este es el código en mi index.html (lo pongo así porque en el anterior post no sale el "col-left" y el "col-right"):

<?php if (have_posts()) : ?>
<div class="col-left">
<?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 class="extracto"><?php the_excerpt(); ?></div>
</div>
<?php endwhile; ?>
</div>
<div class="col-right">
<?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 class="extracto"><?php the_excerpt(); ?></div>
</div>
<?php endwhile; ?>
</div>
<?php else : ?>
No hay nada
<?php endif; ?>

Y este el relacionado con el mismo que está en mi style.css:

.col-left {
width:350px;
}

.col-right {
float:right;
width:350px;
}

Aún no lo he subido a ningún servidor, luego no tiene URL. He probado a poner las columnas menos anchas (250px cada una) pero el problema persiste.