wordpress sitelerde rastladığımız bu görünüm şeklini kendi sitemizde de kullanabiliriz.bunun için azcık kod bilgimiz olsa yeter.yeter ki temamıza hkim olalım ve az buçuk anlayalım işin püf noktalarını
Thumbnaile uyumlu yapmak için temanızın index.php kısmına
Kod:
<img style="margin:5px 0px 10px 0px" border="0" src="<?php $values = get_post_custom_values("resim"); echo $values[0]; ?>" alt="<?php the_title(); ?>" /> bu kodu eklemeniz lazım.bunu etkin kullanmak için yapmanız gereken sadece Yazı ya da içerik eklerken Özel Alanlardan resim diye eklemektir.
kod şuraya gelecek örnek kullanım:
Kod:
<div class="entry">
<img style="margin:5px 0px 10px 0px" border="0" src="<?php $values = get_post_custom_values("resim"); echo $values[0]; ?>" alt="<?php the_title(); ?>" />
<?php the_content('Read the rest of this entry »'); ?>
</div>
teknohaberci
