<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<?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 class="pagetitle"> '<?php echo single_cat_title(); ?>' Kategorisi için arşiv</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class="pagetitle"> <?php the_time('F jS, Y'); ?> için arşiv</h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class="pagetitle"><?php the_time('F, Y'); ?>için arşiv</h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class="pagetitle"><?php the_time('Y'); ?>için arşiv</h2>
<?php /* If this is a search */ } elseif (is_search()) { ?>
<h2 class="pagetitle">Arama Sonuçları</h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class="pagetitle">Yazar Arşivleri</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle">Site Arşivleri</h2>
<?php } ?>
<div class="navigation">
<div class="alignleft"><?php posts_nav_link('','','« Önceki Maçlar') ?></div>
<div class="alignright"><?php posts_nav_link('','Sonraki Maçlar »','') ?></div>
</div>
<?php while (have_posts()) : the_post(); ?>
<div class="post">
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h3>
<small><?php the_time('l, F jS, Y') ?></small>
<div class="entry">
<?php the_excerpt() ?>
</div>
<p class="postmetadata"> <?php the_category(', ') ?> <strong>|</strong> kategorisinde<?php edit_post_link('Edit','','<strong>|</strong>'); ?> <?php comments_popup_link('Yorum yok »', '1 Yorum »', '% Yorum »'); ?></p>
<!--
<?php trackback_rdf(); ?>
-->
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php posts_nav_link('','','« Önceki Maçlar') ?></div>
<div class="alignright"><?php posts_nav_link('','Sonraki Maçlar »','') ?></div>
</div>
<?php else : ?>
<h2 class="center">Bulunamadı</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
Bu Archive.php dosyasi
<?php
/*
Template Name: Archives
*/
?>
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<div class="post">
<h2>Archives by Subject:</h2>
<ul>
<?php wp_list_cats(); ?>
</ul>
</div> </div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
bu da archieves.php
ancak her ikisinde de uygun bir ayar bulamadim...
Baska temalarla sorun yasamiyorum, ancak en azindan kategoriye tiklandiginda sadece basliklari göstermek istiyorum...