arkadaşlar aşağıda verdiğim kodlar index.php içerisindeki benim sitemin anasayfasında bulunan yeni eklenen filmleri gösteren kod (sanırım).
<div class="filmcerceve"><div class="filmcontent"><div class="filmsablon">
<h2 class="filmbaslik">Yeni Eklenen Filmler</h2></div>
<?php if (have_posts()) : $odd = true; ?>
<?php
while (have_posts()) :
the_post();
$image = get_post_meta($post->ID,'resim', true);
?>
<div class="video-film<?php if ($odd) echo ' odd'; ?><?php if (!$image) echo ' no-image' ?>" id="post-<?php the_ID(); ?>">
<?php if($image) : ?>
<div class="dublaj"><div class="dubinfo">
<div class="secenek"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<img src="<?php bloginfo('template_directory'); ?>/images/<?php if( get_post_meta($post->ID, "dublaj", true) ): ?><?php echo get_post_meta($post->ID, "dublaj", true); ?>.png" alt=""/>
<?php else: ?>yok.png" width="1" height="1" alt="0" /><?php endif; ?></a></div>
<div class="imdb"><em> IMDB Puanı:<?php if( get_post_meta($post->ID, "imdb", true) ): ?><?php echo get_post_meta($post->ID, "imdb", true); ?><?php else: ?><?php endif; ?> </em></div></div></div>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php echo $image; ?>" alt="<?php the_title(); ?>" class="thumbnail" width="118" height="169"/></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/noresim.gif" class="thumbnail" width="118" height="169"/></a>
<?php endif ?>
<h3 class="baslik"><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
<span class="views"><?php if(function_exists('the_views')) { the_views(); } ?></span></div>
<?php endwhile; else: ?>
<?php endif; ?></div></div>şimdi bu kodlar yeni eklenen her filmi direk çıkarıyor. Ben ise yalnızca tek bir kategoriye eklenen filmlerin çıkmasını istiyorum bunun için eklemem gereken kod nedir ? id numarasını gireceğim kategorinin yazıları çıksın anasayfada