Salve,
di php non capisco niente, forse qualcuno di voi mi può aiutare.
Ho un wordpress che sulla home mostra le miniature degli ultimi 6 post, e dell'ultimo fa vedere un ingrandimento.
Per non ripetere dell'ultimo sia l'ingrandimento sia la miniatura, è possibile secondo voi modificare questo codice per non fare apparire l'ultimo post?
--------------------------------------------
<?php get_header(); ?>
<?php $i = 0; ?>
<?php query_posts($query_string . '&cat=3'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); $i++; ?>
<div class="box-home post-<?php the_ID(); ?><?php if ($i == 3) { ?> last<?php } ?>">
<?php get_the_image( array( 'custom_key' => array( 'thumbnail' ), 'default_size' => 'thumbnail', 'width' => '270', 'height' => '128' ) ); ?>
<h1 class="archive-header"> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
<?php the_title() ?>
</a></h1>
<?php the_excerpt(); ?>
</div>
<?php if ($i == 3) { ?>
<?php $i = 0; } ?>
<?php endwhile; endif; ?>
</div>
<?php include (TEMPLATEPATH . "/bottom.php"); ?>
<?php get_footer(); ?>
--------------------------------------------
grazie a tutti