<?php get_header(); ?>
<!-- BEGIN content -->
<div id="content">
<?php $recent = new WP_Query("cat=0&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
<!-- begin post -->
<div class="post">
<p class="details1"><?php the_time('F j, Y'); ?> / <?php the_category(', '); ?></p>
<div class="buffer">
<div class="content">
<a href="<?php the_permalink(); ?>"><?php dp_attachment_image($post->ID, 'thumbnail', 'alt="' . $post->post_title . '"'); ?></a>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<p><?php echo dp_clean($post->post_content, 200); ?></p>
</div>
<p class="details2"><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?> / <a href="<?php the_permalink(); ?>">Read More</a></p>
</div>
</div>
<!-- end post -->
<?php endwhile; ?>
<p class="postnav">
<?php next_posts_link('« Older Entries'); ?>
<?php previous_posts_link('Newer Entries »'); ?>
</p>
<?php else : ?>
<div class="notfound">
<h2>Not Found</h2>
<p>Sorry, but you are looking for something that is not here.</p>
</div>
<?php endif; ?>
</div>
<!-- END content -->
<?php get_sidebar(); get_footer(); ?>
cat=0 sıfır yazan yere kategori id sini yaz belirlediğin kategorideki yazıları çeker.