Spew adlı üyeden alıntı: mesajı görüntüle
Bu sekilde duruyo zaten.
Sanirim kodda sorun var, ekleyince " id="post- boyle cikiyo.
<div class="img"><?php $resim = get_post_meta($post->ID,'resim', true); ?><a href="<?php the_permalink(); ?>" target="_self" title="<?php the_title(); ?>"><img src="<? echo $resim; ?>" alt="<?php the_title(); ?>" /></a></div>
<div class="baslik"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></div>
<div class="aciklama">
<?php the_content_limit(270, ""); ?>
peki bu kodu denermisin o eklentiyi pasif yap hocam ve aşağıdaki kodları kaydet dosyalara

functions.php dosyasına kaydet bunu
function excerpt($num) {
2.
$limit = $num+1;
3.
$excerpt = explode(' ', get_the_excerpt(), $limit);
4.
array_pop($excerpt);
5.
$excerpt = implode(" ",$excerpt)."...";
6.
echo $excerpt;
7.
}
bu kodu index.php de bul
<?php the_content_limit(270, ""); ?>
şununla değştir :
<?php excerpt('270'); ?>
birde böyle dene bakalım