MkDeadLy adlı üyeden alıntı: mesajı görüntüle
Yazilari kategoriden cekiyor en son eklenen 5 konu gorunmesini istiyorum

Tapatalk 2 ile HTC One V cihazımdan gönderildi
kendi sitemden vereyim kodları;

<div class="surmanset">

  		<?php 
			wp_reset_query();
			query_posts('showposts=4&cat=292');
			while ( have_posts() ) : the_post(); 
		?>
				<div>
					<a href="<?php the_permalink() ?>">
						<?php echo manset(215,120); ?>
					</a>

					<h3>
						<a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> &raquo;</a>
					</h3>
				</div>

		<?php endwhile; wp_reset_query(); ?>
</div>
yukarıdaki kod, surmanset isimli div'in içine 4 adet 215*120 boyunda haber çekiyor.
query_posts fonksiyonun içinde kaç adet çekileceğini ve kategorisini belirleyebilirsin.

stil kodları:
.surmanset { padding:0 10px; margin-top:5px; margin-bottom:5px;}
.surmanset div { position:relative; width:225px; height:130px; float:left; margin-right:10px; background:#EBECE7; }
.surmanset div:hover { background:#898989;}
.surmanset div.last { margin-right:0; }
.surmanset div img { margin:5px; width:215px; height:120px; }
.surmanset div h3 {font-family: georgia,'palatino linotype',palatino,'times new roman',times,serif; font-size:12px;
position:absolute; width:205px; height:18px; left:5px; bottom:5px; padding:7px 5px; background:url(images/bgTransparent.png) repeat left top; }
.surmanset div h3 a { font-size:12px; color:#FFF;  }
resim çekilmesi için kullanılan manset() fonksiyonu (functions.php'nin içine kopyalanması gerekiyor ve timthumb ile çalışıyor):
function manset($width, $height) {
	echo '<img src="'.get_bloginfo('template_url').'/timthumb.php?src='.get_thumbnail($post->ID, 'full').'&amp;h='.$height.'&amp;w='.$width.'&amp;zc=1" alt="'.get_the_title().'" />';
}