Hi, I'm totally new with WordPress, and so far I'm doing it ok.
But there are certain things I want to do that no matter how many forums or documentation I read, I just can't do it!
Please, help me on this one:
I'm creating my theme and in the index.php I'm showing the last post as the "Main news". Then show in "Other news" the 3 previous posts that have been created. Lets say, I need to show 3 from the penultimate post.
This is what I have so far in "Other news":
<?php
query_posts('showposts=3');
if (have_posts()) :
while (have_posts()) : the_post();?>
<h3 id="post-<?php the_ID(); ?>">
<?php the_title(); ?></h3>
<?php the_excerpt(); ?>
<?php endwhile; ?>
<?php else : ?>
<h3 class="center">No se han encontrado entradas</h3>
<p class="center"><?php _e("Lo siento, pero lo que estas buscando no esta aqui."); ?></p>
<?php endif;
//Reset Query
wp_reset_query();
?>
The problem is that the last 3 posts are displayed, but I need the last 3 without the last one.
Please help?