Ver Mensaje Individual
  #6 (permalink)  
Antiguo 09/12/2011, 08:44
Avatar de rogertm
rogertm
Mod->Cuba
 
Fecha de Ingreso: julio-2005
Ubicación: /home/Cuba/Habana/rogertm/
Mensajes: 2.922
Antigüedad: 18 años, 9 meses
Puntos: 638
Respuesta: Problema con Paginacion

Supongamos que tienen un Loop del tipo:
Código PHP:
Ver original
  1. <?php
  2. while( have_posts() ) : the_post();
  3.     // Aquí los artículos y bla bla bla
  4. endwhile; // End the loop.
Sugiero que prueben, al final del Loop, poner esta función wp_reset_postdata(), osea, que se vea así:
Código PHP:
Ver original
  1. <?php
  2. while( have_posts() ) : the_post();
  3.     // Aquí los artículos y bla bla bla
  4. endwhile; // End the loop.
  5.  
  6. wp_reset_postdata();
  7. ?>
  8.  
  9. <?php /* Display navigation to next/previous pages when applicable */ ?>
  10. <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  11.     <div id="nav-below" class="navigation">
  12.         <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
  13.         <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
  14.     </div><!-- #nav-below -->
  15. <?php endif; ?>

Saludos
__________________
Friki y Blogger por Cuenta Propia:213
Twenty'em: Theming is Prose