My mistake… It’s a typo: I want to be able to navigate through one of my group of posts without lEAving the page. I mean, having the last 20 posts of each group loaded and being able to cycle through them using the arrows below each group (next and previous buttons).
I don’t have a live version yet…
But: what happens now is
1- navigation makes me jump page…
from https://www.server.com to https://www.server.com/page/2
2- My navigation buttons only seem to recognize the first group of posts. When I jump to previous or next pages, only the first group goes back and forward, I’d like to move back and forward separetly within each group. Here’s a more complete version of the code above:
<!-- First group of posts... this displays the number of posts I specify in my Reading Tab of the Options Panel -->
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- Display some stuff using normal tags like the_author and the_content -->
<?php endwhile; ?>
<div class="entry navigation fix">
<br class="clear" />
<ul class="home-nextprev fix">
<li class="next"><?php previous_posts_link('%link') ?></li>
<li class="previous"><?php next_posts_link('%link') ?></li>
</ul>
</div>
<?php else : ?>
<!-- Don't have posts to display -->
<?php endif; ?>
<!-- Second group of posts -->
<?php query_posts('category_name=articulos&showposts=4'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- All the stuff I do to display the posts -->
<?php endwhile;?>
<ul class="home-nextprev fix">
<li class="next"><?php previous_posts_link('%link') ?></li>
<li class="previous"><?php next_posts_link('%link') ?></li>
</ul>
<?php endif; ?>
<!-- Third group of posts -->
<?php query_posts('category_name=noticias&showposts=3'); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- All the stuff I do to display the posts -->
<?php endwhile;?>
<ul class="home-nextprev fix">
<li class="next"><?php previous_posts_link('%link') ?></li>
<li class="previous"><?php next_posts_link('%link') ?></li>
</ul>
<?php endif; ?>