Ver Mensaje Individual
  #1 (permalink)  
Antiguo 10/02/2015, 08:41
Avatar de satanson123
satanson123
 
Fecha de Ingreso: julio-2012
Mensajes: 217
Antigüedad: 11 años, 9 meses
Puntos: 2
Juntar las entradas en vertical

Hola amigos estoy rediseñando una web que habia hecho el problema esta que en vertical no se juntan las entradas, les dejare una imagen para que vean de que hablo.



Lo que quiero es que los post se peguen arriba, la estoy haciendo como la tiene ebay.com

Aqui le dejo el css que controla esa parte.

Código CSS:
Ver original
  1. .article{
  2.     width: 235px;
  3.     margin: 0 10px 10px 0;
  4.     border: 1px solid #d4d4d4;
  5.     float:left;
  6.     position: relative;
  7.     overflow: hidden;
  8.     -webkit-border-radius: 3px;
  9. -moz-border-radius: 3px;
  10. border-radius: 3px;
  11. -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.07);
  12. -moz-box-shadow:    0px 0px 5px 0px rgba(0, 0, 0, 0.07);
  13. box-shadow:         0px 0px 5px 0px rgba(0, 0, 0, 0.07);
  14. -webkit-transition: all 0.2s ease;
  15.     -moz-transition:    all 0.5s ease;
  16.     -o-transition:      all 0.5s ease;
  17.     -ms-transition:     all 0.5s ease;
  18.     transition:         all 0.5s ease;
  19.    
  20. }
  21. .article:hover{
  22.     border: 1px solid #AAA;
  23.     -webkit-box-shadow: 0px 0px 5px 0px rgba(50,50,50,0.1);
  24. -moz-box-shadow:    0px 0px 5px 0px rgba(50,50,50,0.1);
  25. box-shadow:         0px 0px 5px 0px rgba(50,50,50,0.1);
  26.  
  27. }
  28. .article #title{
  29.     background: url(images/t-back.png) repeat;
  30.     color: #fff;
  31.     width: 100%;
  32.     position:absolute;
  33.     padding: 5px;
  34.     top: -100px;
  35.     -webkit-transition: all 0.5s ease;
  36.     -moz-transition:    all 0.5s ease;
  37.     -o-transition:      all 0.5s ease;
  38.     -ms-transition:     all 0.5s ease;
  39.     transition:         all 0.5s ease;
  40. }
  41. .article:hover > #title{
  42.     top: 0;
  43. }

y el bucle

Código PHP:
Ver original
  1. <?php
  2. $i = 0;
  3. $query = new wp_query('nopaging=true&cat=49&order=ASC');
  4.      if($query->have_posts()) : ?>
  5.     <?php while($query->have_posts()) : $query->the_post(); $post_id = get_the_ID(); $i++?>
  6.    
  7.  
  8. <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
  9.     <article class="post article" id="post-<?php the_ID(); ?>">
  10.    
  11.        <div id="title"><?php the_title(); ?></div>
  12.        
  13.     <div id="thumbnail" style="float:left;"><?php the_post_thumbnail(array(230,230)); ?></div>
  14.  
  15.      
  16.         <div class="pr">
  17.      
  18. RD$ <?php echo $text_meta_field = get_post_meta( $post_id, 'precio', true ); ?>
  19.        </div>
  20.          
  21.            
  22.  
  23.     </article>
  24.     </a>
  25.  
  26.    
  27.    
  28.     <?php endwhile; ?>
  29.  
  30.  
  31.  
  32.     <?php endif; ?>