Temada Thumbnail resmi büyük çıkıyor ?
21
●1.891
- 19-03-2009, 11:44:14kesın bir sey eksık yapıyorsundurEmrearici adlı üyeden alıntı: mesajı görüntüle
istersen şu şekılde yap oncelıkle wp-content klasorunun altında resım diye bir klasor olustur daha sonra 70x70 olan bu resımlerını ftp den bu klasore at sonra admin paneline gel ayarlardan çeşitli kısmına gel orada ''Yüklemeleri bu klasörde sakla'' ibaresının yanına wp-content/resim yaz daha sonra konu açarkende özel alanlardan anahtar kısmına eger aşagı kısma eklıyeceksen hpbottom ustte eklıyeceksen thumbnail manşete ekleyeceksende articleimg yazmalısın deger kısmınada http://www.siteninismi.com/wp-content/resim/resim ismi.jpg
şeklinde yaparsan olur
not:manset resim boyutu diger resım boyutundan farklıdır unutma digerleri 70x70 manset senın belırleyecegın bır boyut - 19-03-2009, 12:13:39Üyeliği durduruldutamam bunu anladım. 70*70 yaparsam doğru çıkar. yanlız ben bunu elimle her resimde yapıcakmıyım ? kendisi yapıyordu bazı temalarda bu neden bu temada olmuyor ? ben bunu sağlamak istiyorum. home.php mi vereyim. biri yardımcı olursa sevinirim
<?php get_header(); ?> <div id="content"> <div id="homepage"> <div id="homepageleft"> <div class="hpfeatured"> <h3>Kendimden</h3> <?php // AÅŸağıdaki cat=11 rakamını göstermek istediÄŸiniz kategori ID'si ile deÄŸiÅŸtirin. // showposts=3 gösterilecek kayıt sayısıdır, istediÄŸiniz ÅŸekilde deÄŸiÅŸtirebilirsiniz. ?> <?php $recent = new WP_Query("cat=4&showposts=3"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?> <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" /></a> <?php else: ?> <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a> <?php endif; ?> <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b> <?php the_content_limit(80, ""); ?> <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div> <?php endwhile; ?> <b><a href="http://www.emrearici.com/category/kendimden" rel="bookmark">Bu kategorideki tüm gönderiler</a></b> </div> </div> <div id="homepageright"> <div class="hpfeatured"> <h3>Åiir</h3> <?php // AÅŸağıdaki cat=7 rakamını göstermek istediÄŸiniz kategori ID'si ile deÄŸiÅŸtirin. // showposts=3 gösterilecek kayıt sayısıdır, istediÄŸiniz ÅŸekilde deÄŸiÅŸtirebilirsiniz. ?> <?php $recent = new WP_Query("cat=6&showposts=3"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "thumbnail", true) ): ?> <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" /></a> <?php else: ?> <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a> <?php endif; ?> <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b> <?php the_content_limit(80, ""); ?> <div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div> <?php endwhile; ?> <b><a href="http://www.emrearici.com/category/begendigim-siirler" rel="bookmark">Bu kategorideki tüm gönderiler</a></b> </div> </div> <div id="homepagebottom"> <div class="hpbottom"> <h3>Serbest Kürsü</h3> <?php // AÅŸağıdaki cat=9 rakamını göstermek istediÄŸiniz kategori ID'si ile deÄŸiÅŸtirin. // showposts=3 gösterilecek kayıt sayısıdır, istediÄŸiniz ÅŸekilde deÄŸiÅŸtirebilirsiniz. ?> <?php $recent = new WP_Query("cat=2713&showposts=15"); while($recent->have_posts()) : $recent->the_post();?> <?php if( get_post_meta($post->ID, "hpbottom", true) ): ?> <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "hpbottom", true); ?>" alt="<?php the_title(); ?>" /></a> <?php else: ?> <a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a> <?php endif; ?> <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b> <?php the_content_limit(350, "[Devamını oku]"); ?> <div style="border-bottom:1px dotted #2255AA; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div> <?php endwhile; ?> <b><a href="http://www.emrearici.com/category/serbest-kursu" rel="bookmark">Bu kategorideki tüm gönderiler</a></b> </div> </div> </div> <?php include(TEMPLATEPATH."/sidebar.php");?> </div> <!-- The main column ends --> <?php get_footer(); ?> - 19-03-2009, 13:28:19yazıda soyle bır kısım varanarschi adlı üyeden alıntı: mesajı görüntüle
Premium Tema Kullananlar içinse kullanımı:
<img src=”<?php echo bloginfo(’template_url’); ?>/resim/timthumb.php?src=<?php echo get_post_meta($post->ID, “Thumbnail”, true); ?>&w=150&h=200&zc=1″ alt=”" />
Thumbnail varsayılanı kullanılmıştır..Temanızın custom field değerine göre ayarlamaları yapabilirsiniz..
bunu nereye ekleyecegız vede ındırılen Timthumb dosyasını tam nereye atacagız
sunucuya upload ediyorum resmi sunucudaki resim linkini veriyorum gene aynı.. :S
Sorun düzeldi...