bu single.php 'nin kodları
<?php get_header(); ?>
<div id="left">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="entry">
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php echo get_permalink() ?>" rel="bookmark" title="Bu yazı için kalıcı bağlantı: <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="allinfos"><?php the_time('d F Y') ?> <span class="category">Kategori: <?php the_category(', ') ?></span> <!-- by <?php the_author() ?> --></div>
<?php the_content('<p class="serif">Devamını okuyunuz »</p>'); ?>
<?php wp_link_pages(array('before' => '<p><strong>Sayfalar:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div></div>
<div class="entry">
<div class="postmetadata">
<small>
<?php the_tags( 'Etiketler: ', ', ', ''); ?></div></div>
</small>
<div class="entry">
<div class="postmetadata">
<small>
Bu yazı
<?php /* This is commented, because it requires a little adjusting sometimes.
You'll need to download this plugin, and follow the instructions:
http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
/* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ ?>
<?php the_time('d F Y') ?> tarihinde <?php the_time('H:i') ?>
sularında <?php the_category(', ') ?> kategorisinde yazıldı.
Yorumlara <?php comments_rss_link('RSS 2.0'); ?> ile abone olabilir,
<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Both Comments and Pings are open ?>
<a href="#respond">yorum yazabilir</a> ya da web sitenizden <a href="<?php trackback_url(); ?>" rel="trackback">geri izleme</a> yapabilirsiniz.
<?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
// Only Pings are Open ?>
Bu yazı yorumlara kapalı, ama web sitenizden <a href="<?php trackback_url(); ?> " rel="trackback">geri izleme</a> yapabilirsiniz.
<?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Comments are open, Pings are not ?>
Sona gidip yorum yapabilirsiniz. Pingleme şimdilik kapalı.
<?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
// Neither Comments, nor Pings are open ?>
Yorum yapma ve pingleme kapalı.
<?php } edit_post_link('Bu yazıyı düzenleyin.','',''); ?>
</small>
</div>
</div>
<div class="clear"></div>
<div class="entry">
<?php comments_template(); ?>
</div>
<?php endwhile; else: ?>
<div class="entry">
<p>Üzgünüm,aramanıza uygun sonuç bulunamadı.</p>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>