İstersen şöyle yapabilirsin eklenti kullanmadan
Öncelikle
benzer.php isminde not defteriyle bir dosya oluştur
ve aşagıdaki kodu kopyala Bunu Okuyanlar Bunları da Okudu yazısını değiştir
Benzer yazılar olarak daha sonra ftp le aktif olan temanın bulunduğu
klasöre at
Alıntı
<?php
$this_post = $post;
$category = get_the_category(); $category = $category[0]; $category = $category->cat_ID;
$posts = get_posts('numberposts=6&offset=0&orderby=post_dat e&order=DESC&category='.$category);
$count = 0;
foreach ( $posts as $post ) {
if ( $post->ID == $this_post->ID || $count == 5) {
unset($posts[$count]);
}else{
$count ++;
}
}
?>
<?php if ( $posts ) : ?>
<div class="post-content">
<h3>Bunu Okuyanlar Bunları da Okudu</h3>
<ul>
<?php function getWords($text, $limit) {
$array = explode(" ", $text, $limit +1);
if(count($array) > $limit) {
unset($array[$limit]);
}
return implode(" ", $array); }
?>
<?php foreach ( $posts as $post ) : ?>
<?php $mycontent = strip_tags($post->post_content);
$excerpt = getWords($mycontent, 15);
$a_title = $excerpt . "..."; ?>
<li><a href="<?php the_permalink(); ?>" title="<?php echo $a_title ?>">
<?php if ( get_the_title() ) { the_title(); } else { echo "Untitle"; } ?></a>
(<?php the_time('F jS, Y') ?>)
</li>
<?php endforeach // $posts as $post ?>
</ul>
</div>
<?php else : ?>
<div class="post-content">
<h3>Benzer Konular</h3>
<ul>
<li>Bu Konuyla İlgili Benzer Konu Bulunamadı</li>
</ul>
</div>
<?php endif // $posts ?>
<?php
$post = $this_post;
unset($this_post);
?>
Daha sonra Kullandığın temanın Tekil Yazı (single.php) dosyasına uygun bulduğun yere aşağıdaki kodu yapıştır.
Alıntı
<?php include (TEMPLATEPATH . '/benzer.php'); ?>
Hepsi bu kadar Kolay Gelsin
Örnek olarak buraya bakabilirsin
En İyi Antivirüs Programı Hangisi | EgitimTUBE