Ver Mensaje Individual
  #5 (permalink)  
Antiguo 16/04/2013, 06:49
gastro
 
Fecha de Ingreso: enero-2006
Mensajes: 94
Antigüedad: 18 años, 3 meses
Puntos: 2
Respuesta: Lista miniaturas en el loop

Ante todo gracias por las molestias!

EDITO: Ya he obtenido el resultado que quería, ya solo me queda dar estilos y listo. Muchas gracias!


Dejo el código por si a alguien le resulta útil:

Código PHP:
<?php get_header(); ?>

    <div id="primary" class="site-content">
        <div id="content" role="main">
        
        <?php  /*Creamos el Query*/
        
$args=array('post_type' => 'peliculas''showposts'=> 5);
 
        
$my_query = new WP_Query($args);
        
          if( 
$my_query->have_posts() ) :
        while (
$my_query->have_posts()) : $my_query->the_post();
        
?>
        
            <div class="post" id="post-<?php the_ID(); ?>"> 
                    <h1 class="titulo"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1> 
                    <div class="postImagen"> 
                        <?php if ( has_post_thumbnail() ) : ?> 
                        <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a> 
                        <?php endif; ?> 
                    </div> 
                    <div class="postExcerpt"> 
                        <?php the_excerpt(); ?> 
                    </div> 
            </div> 
        
        <?php    
        
endwhile;
        endif;
        
wp_reset_postdata();
        
?>
        
        
        </div><!-- #content -->
    </div><!-- #primary -->

<?php get_sidebar(); ?>
<?php get_footer
(); ?>
Un saludo

Última edición por gastro; 16/04/2013 a las 07:02