Ver Mensaje Individual
  #1 (permalink)  
Antiguo 27/05/2012, 11:59
Avatar de Lopezito
Lopezito
 
Fecha de Ingreso: junio-2010
Mensajes: 367
Antigüedad: 13 años, 9 meses
Puntos: 17
Problema al establecer un numero de posts por página

Hola.
Hice un theme para una web, pero resulta que me encontré con un error, el cual no logre solucionar y por eso recurro a preguntarles a ustedes.
Pues básicamente mi problema es que al poner 24 posts por página desde el panel de administración, muestra mal distribuido los posts en 2 diferentes secciones de posts.
Me refiero que tengo 2 bloques con 2 diferentes categorías donde se muestran sus posts y al declarar 24 posts, no muestra 12/12 o 24/24, muestra 9/15.
El código del loop es:

Código PHP:
<div id="publicidad">
<?php echo stripslashes(get_option('hd_publicidad1')); ?><?php echo stripslashes(get_option('hd_publicidad2')); ?>
</div>
<div id="listadeposts">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php 
if ( has_tag'1' ) ) { ?>
<div id="articulo">
<div id="titulopost"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"><?php if (strlen($post->post_title) > 39) { echo substr(the_title($before ''$after ''FALSE), 039) . '...'; } else { stripslashes(the_title()); } ?> </div>
<div id="imgpost"><img src="<?php echo get_bloginfo('template_url'); ?>/categorias/<?php foreach((get_the_category()) as $category) {  echo ''$category->category_nicename ''; } ?>.jpg"/></div></a>
<div id="estrellas"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div>
</div>
<?php ?>
<?php 
endwhile; else: ?>
<p>Lo sentimos, no hay posts.</p>
<?php endif; ?>
</div>
<hr/>
<div id="tituloultimaspeliculas"><h1>Programaci&oacute;n: Sabados y Domingos</h1></div>
<hr/>
<div id="publicidad">
<?php echo stripslashes(get_option('hd_publicidad3')); ?><?php echo stripslashes(get_option('hd_publicidad4')); ?></div>
<div id="listadeposts">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php 
if ( has_tag'2' ) ) { ?>
<div id="articulo">
<div id="titulopost"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>" rel="bookmark"><?php if (strlen($post->post_title) > 39) { echo substr(the_title($before ''$after ''FALSE), 039) . '...'; } else { stripslashes(the_title()); } ?> </div>
<div id="imgpost"><img src="<?php echo get_bloginfo('template_url'); ?>/categorias/<?php foreach((get_the_category()) as $category) {  echo ''$category->category_nicename ''; } ?>.jpg"/></div></a>
<div id="estrellas"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div>
</div>
<?php ?>
<?php 
endwhile; else: ?>
<p>Lo sentimos, no hay posts.</p>
<?php endif; ?>
</div>
<?php wp_pagenavi(); ?>
Espero que puedan ayudarme.
Saludos.