• 11-05-2009, 21:21:43
    #1
    <?php endif; ?>
    
    
    	<?php if (have_posts()) : ?>
    
    		<?php $count=0; while (have_posts()) : the_post(); if(!($firstpost == $post->ID)) : ?>
    		<?php if($count % 2 == 0) echo '<div class="left">'; else echo '<div class="right">'; ?>
    		
    			<div class="post" id="post-<?php the_ID(); ?>" style="">
    				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
    				<small><abbr title="<?php the_time('Y-m-d\TH:i:sO'); ?>"><?php unset($previousday); printf(__('%1$s – %2$s'), the_date('', '', '', false), get_the_time()) ?></abbr> <!-- by <?php the_author() ?> --></small>
    <div class="clear"></div>
    			
    					<p><?php the_content_rss('', TRUE, '', 30) ; ?></p><div class="clear"></div>
    					
    		
    			</div>
    		</div>
    		<?php if($count % 2 != 0) echo '<div class="clear"></div>';?>
    
    		<?php $count++; endif; ?>
    
    		<?php  endwhile; ?>
    [B]
    Bu kodu ben tam anlamıyla anlamadım. Daha doğrusu bana lazım olan kısmını anlamadım. Ben bu kodlar sadece sınırlı yazı çağırmak istiyorum. Yani 4 yazı gelsin mesela, nasıl yapabilirm?
  • 11-05-2009, 21:51:58
    #2
    bu kodlar belli sayıda yazı çağırmak için değilki zaten

    yazıları 2şerli sıra halinde çağırmak için. yani verdiğin kodla istediğin şey alakasız
  • 11-05-2009, 22:04:29
    #3
    aslında ben de demek istedim ki bu koda nasıl sınır koyabiliriz. yani belli sayıda yazı çağırmak için nasıl yapmamız gerekiyor ?
  • 11-05-2009, 22:18:32
    #4
    Template Tags/query posts WordPress Codex adresindeki makalede bahsedilen query_posts ve parametrelerini kullanarak yapabilirsiniz.