Alisko adlı üyeden alıntı:
mesajı görüntüle
<?php get_header(); ?>
<div id="wrapper">
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); $say++; ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div id="date">
<div class="d"><?php the_time('d') ?></div>
<div class="m"><?php the_time('F') ?></div>
<div class="j"><?php the_time('y') ?></div>
</div>
<br />
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?> için kalıcı bağlantı"><?php the_title(); ?></a></h2>
<br />
<small><?php //the_time('d F Y') ?> <!-- by <?php the_author() ?> --></small>
<br />
<div class="entry">
<?php the_content('Devamını oku »'); ?>
</div>
<p class="postmetadata">Kategori <?php the_category(', ') ?> <strong>|</strong> <?php edit_post_link('Düzenle','','<strong>|</strong>'); ?> <?php comments_popup_link('Yorum Yok »', '1 Yorum »', '% Yorum »'); ?></p>
</div>
<?php if ($say == 1) { include (TEMPLATEPATH . '/sonresimler.php'); } ?>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('« Önceki Yazılar') ?></div>
<div class="alignright"><?php previous_posts_link('Sonraki Yazılar »') ?></div>
</div>
<?php else : ?>
<h2 class="center">Bulunamadı</h2>
<p class="center">Üzgünüm aradığınız şey burada değil.</p>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</div>
<?php include 'images/dark/dark.php';?>döngünün içine $say değişkenini oluşturduk, ve her döngüde 1 artıyor. ilk yazıdan sonra çıksın dedim mesela ondan $say == 1 dedim. ben resimleri başka yerden include edersin diye düşündüm. artık kendine göre yaparsın if in içini