archive.php
Alıntı
<?php get_header(); ?>

<!-- content ................................. -->
<div id="content" class="archive">

<?php if (have_posts()) : ?>

<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2>Kategori: '<?php echo single_cat_title(); ?>'</h2>

<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2>İçin Arşiv <?php the_time('F jS, Y'); ?></h2>

<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2>İçin Arşiv <?php the_time('F, Y'); ?></h2>

<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2>İçin Arşiv <?php the_time('Y'); ?></h2>

<?php /* If this is a search */ } elseif (is_search()) { ?>
<h2>Arama Sonuçları</h2>

<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2>Yazar Arşivi</h2>

<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2>Blog Arşivi</h2>

<?php } ?>

<?php while (have_posts()) : the_post(); ?>

<?php $custom_fields = get_post_custom(); ?>

<?php if (isset($custom_fields["BX_post_type"]) && $custom_fields["BX_post_type"][0] == "mini") { ?>

<hr class="low" />

<div class="minientry">

<p>
<?php echo BX_remove_p($post->post_content); ?>
<?php comments_popup_link('(0)', '(1)', '(%)', 'commentlink', ''); ?>
<a href="<?php the_permalink(); ?>" class="permalink" title="Kalıcı Bağlantı"><?php the_time('M j, \'y') ?><!--, <?php the_time('h:ia') ?>--></a>
<!--<em class="author"><?php the_author() ?></em>-->
<?php edit_post_link('Düzenle','<span class="editlink">','</span>'); ?>
</p>

</div>

<hr class="low" />

<?php } else { ?>

<div class="entry">

<h3><a href="<?php the_permalink() ?>" title="Kalıcı Bağlantı"><?php the_title(); ?></a></h3>

<?php ($post->post_excerpt != "")? the_excerpt() : BX_shift_down_headlines($post->post_content); ?>

<p class="info"><?php if ($post->post_excerpt != "") { ?><a href="<?php the_permalink() ?>" class="more">Devamını Oku</a><?php } ?>
<?php comments_popup_link('Yorum Ekle', '1 Yorum', '% Yorumlar', 'commentlink', ''); ?>
<em class="date"><?php the_time('F jS, Y') ?><!-- at <?php the_time('h:ia') ?>--></em>
<!--<em class="author"><?php the_author(); ?></em>-->
<?php edit_post_link('Düzenle','<span class="editlink">','</span>'); ?>
</p>

</div>

<?php } ?>

<?php endwhile; ?>

<p><!-- this is ugly -->
<span class="next"><?php previous_posts_link('Sonraki Yazılar') ?></span>
<span class="previous"><?php next_posts_link('Önceki Yazılar') ?></span>
</p>

<?php else : ?>

<h2>Bulunamadı</h2>
<p>Üzgünüm, kriterlerinize uygun yazı bulunamadı.</p>

<?php endif; ?>

</div> <!-- /content -->

<?php get_sidebar(); ?>

<?php get_footer(); ?>
category.php bu dosya yok