Kategorinin zaten içindeyken tekrardan ID belirtmene gerek yok. Aşağıda örnek category.php var. Bundan yararlanarak yapabilirsin.
<?php get_header(); ?>
<div id="siteyi-topla">
<div id="orta-kisim">
<div id="yazi-kismi">
<div id="kategori-baslik">
<h1>"<?php single_cat_title()?>" kategorisindeki yazılar:</h1>
</div>
<?php while (have_posts()) : the_post(); ?>
<div class="yazilar">
<div class="yazi-resimleri">
<a href="<?php the_permalink(); ?>"><img width="201" height="155" src="<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID)); ?>" class="resim wp-post-image" alt="<?php the_title(); ?>" /></a>
</div>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="yazi-bilgileri">
<div class="yazar">
<?php the_author(); ?> </div>
<div class="tarih">
<?php the_time('j F Y') ?> </div>
<div class="yorum">
<span class="dsq-postid" rel="<?php the_ID(); ?> <?php the_permalink(); ?>"><?php comments_number('Yorum Yok', '1 Yorum ', '% Yorum' );?></span> </div>
</div>
<div class="yazi">
<?php excerpt('15'); ?> </div>
<div class="devamini-oku">
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">DEVAMINI OKU</a>
</div>
</div>
<?php endwhile; ?>
<div id="sayfalama">
<div class='wp-pagenavi'>
<?php sayfalama(); ?>
</div> </div>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
dostum teşekkürler ama category içinde manşet kullandığım için 20 tane haber çekmem gerekiyor. Bunun için id belirmem gerekiyor. Sadece o kategoriye ait haberleri çekmesi gerekiyor manşetten.