I'm trying to loop only from the category I'm on Wordpress and I'm not getting it. Someone give me a light? I'm trying the archive.php file for the theme.
You should only see posts in the open category.
Below the code for my archive.php:
<?php
if (is_home()){
query_posts("showposts=5&cat=1,2,3,4,5,6,7,8,9,10,11,12"); while(have_posts()) : the_post(); ?>
<div class="LatestPosts">
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail(); ?>
<div class="TxtNotice">
<?php //echo excerpt('20'); ?> <?php echo the_title(); ?>[...]
</br>
</a>
</div>
<?php
endwhile; wp_reset_query(); }?>