Hi everyone
I am using a Mimbo Theme. On the homepage i have that:
<?php if (have_posts()) { ?>
<div id="content">
<?php
$postCount = 0;
$page = (get_query_var('paged')) ? get_query_var('paged') : 0;
query_posts( 'paged=$page&post_per_page=-1&cat=' . get_query_var('cat') );
while (have_posts()) { the_post();
if( $postcount == 0 ) {
//GETS LATEST OR STICKY POST
?>
<div id="box" style="width:182px; background: #D8D8D8; float: right; margin-top:22px; height:258px;"></div>
<div id="lead" class="clearfloat">
<div id="lead-text">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>">
<?php the_title(); ?></a> <span class="commentcount"> (<?php comments_popup_link('0', '1', '%'); ?>)</span></h2>
<p class="date"><?php the_time('n/d/y'); ?> • </p>
<?php the_excerpt(); ?>
</div>
</div><!--END LEAD/STICKY POST-->
<div id="more-posts">
<h3><?php _e('Recent Posts','Mimbo'); ?></h3>
<?php
}
elseif($post) {
//GETS NEXT FOUR EXCERPTS
?>
<div class="clearfloat recent-excerpts">
<h4><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a> <span class="commentcount">(<?php comments_popup_link('0', '1', '%'); ?>)</span></h4>
<p class="date"><?php the_time('n/d/y'); ?> • </p>
<?php the_content(); ?>
</div>
<?php //GETS NEXT HEADLINES
}
else {
ob_start();
echo '<li><a href="';
the_permalink();
echo '">';
the_title();
echo '</a></li>';
$links[] = ob_get_contents();
ob_end_clean();
}
$postcount ++;
}
}
else {
?>
<?php } ?>
<div id="nav-links">
<div id="next">
<?php next_posts_link('Next »') ?>
</div>
<div id="prev">
<?php previous_posts_link('« Previous') ?>
</div>
</div>
<?php
if(count($links)): ?>
<?php endif; ?>
</div>
And links for previuos and next posts doesn't work. Any idea?
Thanks!