I load 10 posts on my home.php and I have the 'posts_nav_link()' function to acces to latest entries. But when I click on the previous entries, the link redirect me to mysite.com/page/2 and give me a 404 error.
Could you help me please Thanks ?
<?php if (have_posts()) :
query_posts(
array(
'post_type' => array(
'etude',
'new'
)
)
);?>
<?php while (have_posts()) :
the_post(); ?>
<div class="box1 clearfix" style="margin-top: 7px;">
<div class="post clearfix">
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
<p class="txt0"><?php the_time('d F Y'); ?> dans <a href="<?php echo site_url(get_post_type());?>"><?php echo get_post_type(); ?></a> // <?php comments_popup_link(__('No Comments »', woothemes), __('1 Comment »',woothemes), __('% Comments »',woothemes)); ?></p>
<?php the_content(__('<span class="continue">Continue Reading</span>',woothemes)) ?>
</div>
</div>
<?php endwhile; ?>
<div class="navigation nav clearfix">
<div class="fl"><?php posts_nav_link() ?></div>
</div>