aska_surgun adlı üyeden alıntı: mesajı görüntüle
Nisan neredeyse bitti ama bana 1 nisan şakası gibi geliyor mükemmel bir tema emeğine sağlık kardeşim çok harika olmuş

...............................

Sitede 850 nin üzerinde konu var ve paylaşımların resimleri gözükmüyor hepsinde resim yok çıkıyor konuları güncellemeden herhangi bi değişiklik yapmadan resimlerini gösterebilirmiyim
bu soruyu ben cevaplıyım anladığım kadarıyla resimleriniz konu içinde varsa veya özel alandan çekilmiş ise öncelikle functions.php dosyasına altaki kodu ekleyin

function resimsec() {

global $post, $posts;

$resimbir = '';

ob_start();

ob_end_clean();

$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);

$resimbir = $matches [1] [0];

return $resimbir;

}

daha sonra sitenizde resimlerinizin nerde çıkmasını istiyorsanız oraya

<?php
$resmim= get_post_meta($post->ID, "resim", true);
if ($resmim!="") { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('%s', 'kubrick'), the_title_attribute('echo=0')); ?>">
<img class="alignleft" src="<?php echo $resmim ?>" width="100" height="84" alt="" /> </a>
<?php } else { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('%s', 'kubrick'), the_title_attribute('echo=0')); ?>"><img class="alignleft" src="<?php echo resimsec(); ?>" width="100" height="84" alt="" /></a>
<?php } ?>

bu kodu ekleyin

örnek temanın index.php deki bulun

<?php if ( get_post_meta($post->ID, 'resim', true) ) : ?>
<?php $image = get_post_meta($post->ID, 'resim', true); ?>
<div class="img"><a href="<?php the_permalink() ?>"><img width="113" height="113" src="<?php echo $image; ?>" alt="<?php the_title() ?>" title="<?php the_title() ?>" /></a></div>
<?php else: ?>
<div class="img"><a href="<?php the_permalink() ?>"><img width="113" height="113" src="<?php bloginfo('template_directory'); ?>/images/blank.jpg" title="<?php the_title() ?>" alt="<?php the_title() ?>" /></a></div>
<?php endif; ?>

bu şekilde değiştirin

<div class="img">
<?php
$resmim= get_post_meta($post->ID, "resim", true);
if ($resmim!="") { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('%s', 'kubrick'), the_title_attribute('echo=0')); ?>">
<img class="alignleft" src="<?php echo $resmim ?>" width="1113" height="113" alt="" /> </a>
<?php } else { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('%s', 'kubrick'), the_title_attribute('echo=0')); ?>"><img class="alignleft" src="<?php echo resimsec(); ?>" width="113" height="113" alt="" /></a>
<?php } ?>
</div>

eğer temanızda resimler özel alandan çekilmişse üstte resim yazan değeri kendi sitenizdeki özel adıyla değişirseniniz sizin resimler çıkar