I'm developing a theme for Wordpress
my menu is generated as follows in header.php
<li><a href="<?php echo get_option('home');?>">Início</a></li>
<?php wp_list_categories('title_li=&orderby=id'); ?>
<?php wp_list_pages('title_li=&order=id'); ?>
The problem is that when I access a category when trying to show the posts it returns all posts and not the category.
category.php
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php the_title(); ?>
<?php endwhile; ?>
<?php endif; ?>