Ver Mensaje Individual
  #5 (permalink)  
Antiguo 27/12/2011, 10:10
Avatar de rogertm
rogertm
Mod->Cuba
 
Fecha de Ingreso: julio-2005
Ubicación: /home/Cuba/Habana/rogertm/
Mensajes: 2.922
Antigüedad: 18 años, 9 meses
Puntos: 638
Respuesta: Como puedo modificar un theme...

En efecto, para que te muestre los posts en dos columnas es solo cuestión de aplicar un poco de css...

Supongamos que tienes lo siguiente:
Código PHP:
Ver original
  1. <?php
  2. while ( have_posts() ) : the_post();
  3. ?>
  4.     <article id="post-<?php the_ID(); ?>" <?php post_class('multi-column'); ?>>
  5.         <header>
  6.             <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
  7.         </header>
  8.         <p class="entry-meta">
  9.             <?php twentyten_posted_on(); ?>
  10.         </p><!-- .entry-meta -->
  11.         <div class="entry-summary">
  12.             <?php the_excerpt(); ?>
  13.         </div><!-- .entry-summary -->
  14.     </article><!-- #post-## -->
  15. <?php
  16. endwhile;
  17. wp_reset_postdata();
  18. ?>
Fíjate que agrego una nueva clase a post_class()
Código PHP:
Ver original
  1. <?php post_class('multi-column'); ?>
Luego juegas con el css:
Código CSS:
Ver original
  1. .multi-column{
  2.     float: left;
  3.     margin: 0 20px 0 0;
  4.     width: 320px;
  5.     min-height: 350px;
  6. }

Espero te sirva

Debería marcar este mensaje como mini-tutorial
__________________
Friki y Blogger por Cuenta Propia:213
Twenty'em: Theming is Prose