Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/05/2009, 13:56
Avatar de Wonza99
Wonza99
 
Fecha de Ingreso: marzo-2009
Mensajes: 54
Antigüedad: 15 años, 1 mes
Puntos: 0
[AYUDA] No muestra mas de 3 post en las categorias.

Estoy adaptando el template leanmagazine en mi blog. Seleccione para que se muestren solo 3 post en el index del blog y note que cuando ingresas a una categoría tambien muestra solo 3 post. Me preguntaba si se podia modificar algo en el codigo para que me muestre todas las entradas que hay bajo esa categoría.

Les adjunto el codigo del archivo archive.php con el fin de que me ayuden a encontrar el texto a modificar para que me muestre la totalidad de las entradas ya que lo estuve viendo bien detallado y no logro hacerlo.

Código:
<?php get_header(); ?>
	
	<!-- BEGIN content -->
	<div id="content"><div class="head"><div class="foot">
	
		<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
		<?php /* If this is a category archive */ if (is_category()) { ?>
		<h2 class="atitle">Archivos dentro de la categoría <strong><?php single_cat_title(); ?></strong></h2>
		<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
		<h2 class="atitle">Posts Tagged <strong><?php single_tag_title(); ?></strong></h2>
		<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
		<h2 class="atitle">Archive for <?php the_time('F jS, Y'); ?></h2>
		<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
		<h2 class="atitle">Archive for <?php the_time('F, Y'); ?></h2>
		<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
		<h2 class="atitle">Archive for <?php the_time('Y'); ?></h2>
		<?php /* If this is an author archive */ } elseif (is_author()) { ?>
		<h2 class="atitle">Author Archive</h2>
		<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
		<h2 class="atitle">Blog Archives</h2>
		<?php } ?>
	
		<?php
		if (have_posts()) : $first = true;
		while (have_posts()) : the_post();
		$arc_year = get_the_time('Y');
		$arc_month = get_the_time('m');
		$arc_day = get_the_time('d');
		?>
		
		<!-- begin post -->
		<div class="<?php if ($first) echo 'first '; ?>post">
		<div class="l">
			<a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a>
		</div>
		<div class="r">
			<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
			<p><?php echo dp_clean($post->post_content, 300); ?></p>
			<p class="details"><a href="<?php echo get_day_link("$arc_year", "$arc_month", "$arc_day"); ?>"><?php the_time('m.j.Y') ?></a> | <?php the_category(', ') ?> | <?php the_author_posts_link(); ?></p>
			<p class="comments"><?php comments_popup_link('Sin Consultas', '1 Consulta', '% Consultas'); ?></p>
		</div>
		</div>
		<!-- end post -->
		
		<?php $first = false; endwhile; else : ?>
		<div class="notfound">
		<h2>Not Found</h2>
		<p>Sorry, but you are looking for something that is not here.</p>
		</div>
		<?php endif; ?>
	
		<?php include("bottom.php"); ?>
		
		<!-- begin post navigation -->
		<div class="postnav">
		<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
		</div>
		<!-- end post navigation -->
		
		<div class="break"></div>
	
	</div></div></div>
	<!-- END content -->
	
<?php get_sidebar(); get_footer(); ?>
Gracias.