Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/01/2012, 08:07
RGT
Usuario no validado
 
Fecha de Ingreso: noviembre-2008
Mensajes: 505
Antigüedad: 15 años, 5 meses
Puntos: 5
Codigo para mostrar el primer post

El codigo que uso es:

Código PHP:
<div id="lastpost">
    <?php if (have_posts()) : the_post() ?>            
        <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) : ?>
        <div class="image"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('medium'); ?></a></div>        
        <?php endif; ?>
        <div class="snippet">
            <h2 class="title"><a href="<?php the_permalink(); ?>" title="<?php the_title() ?>" rel="bookmark"><?php the_title(); ?></a></h2>                    
            <p class="meta"><?php the_time('F j, Y'); ?> - <?php comments_popup_link(__('No comments''rbq-domain'), __('1 Comment''rbq-domain'), __('% Comments''rbq-domain')); ?></p>
            <div class="excerpt"><?php the_excerpt(); ?></div>            
        </div>
    <?php endif; ?>                
</div>    
    
<div id="latestposts">
    <?php        
        $counter 
1;
        
$latestPosts = new WP_Query();
        
$latestPosts->query($query_string '&showposts=4&offset=1');                
        while (
$latestPosts->have_posts()) : $latestPosts->the_post();            
    
?>
    <div class="snippet<?php if ($counter == 0) echo ' last'?>">            
        <?php if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) : ?>
        <div class="image"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thumbnail'); ?></a></div>
        <?php endif; ?>                        
        <h3 class="title"><a href="<?php the_permalink() ?>" title="<?php the_title() ?>" rel="bookmark"><?php the_title() ?></a></h3>            
        <p class="meta"><?php the_time('F j, Y'); ?> - <?php comments_popup_link('Add Comment''1 Comment''% Comments'?></p>
        <div class="excerpt"><p><?php echo shortExcerpt(get_the_excerpt(), (int) get_option('of_excerpt_length')); ?></p></div>
    </div><!-- .snippet -->
    <?php $counter++; ?>
    <?php endwhile ?>
</div>
El blog es:
http://www.oyeeso.com/

Quiero mostrar el primer post con la imagen diferente para hacer el blog mas bonito y profesional, me gustaria añadirlo y color de fondo y eso.

Pero cuando lo puse, y le doi click en la pagina siguiente, sólo cambia el primer post, los otros de abajo nó cambian, alguien sabe qué debo poner en counter o explicarme como funciona eso?

Saludos!.