Otomatik Resim Biçimlendirme
8
●1.155
- 31-03-2009, 15:16:31Üyeliği durdurulduOlayı kısaca anlatıyorum.Yazımızı yazdık,yazının en üstüne konuyla ilgili fotoyuda koyduk yayınladık.Ama anasayfamızda yazının tamamı gözükmüyor,gözükmesinide istemiyoruz.Yazının ilk 3 cümlesi gözüküyor ve foto olarakta 100x100 büyüklüğünde gözükmesini istiyoruz.Ama bizim yazıya eklediğimiz foto 250x400 büyüklüğünde.Bunu anasayfada gösterirken otomatik olarak 100x100 büyüklüğünde biçimlendircek bir eklenti var mı yada nasıl yaparız bunu manual harici?
- 31-03-2009, 17:36:38WordPress ile Otomatik Resim Küçültme - Wordpress Destek
üstteki linke bak ben bu kodu kullanıyorum.. - 31-03-2009, 19:26:42Üyeliği durduruldu
<?php get_header(); ?> <div id="content" class="fullspan"> <div class="container_16 clearfix"> <div id="leftcontent" class="grid_12"> <?php $counter = 0; $counter2 = 0; while (have_posts()) : the_post(); ?> <?php $counter++; $counter2++; ?> <div class="grid_6 <?php if ($counter == 1) { echo 'alpha'; } else { echo 'omega'; $counter = 0; } ?>"> <div class="post"> <div class="screenshot"> <div class="screenimg"> <?php if ( get_option('woo_layout') == '1-photo.php' ) { ?> <?php if ( get_option('woo_resize') ) { woo_get_image('large-image','150','113'); } else { ?> <a href="<?php the_permalink() ?>" title="View <?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "image", $single = true); ?>" alt="<?php the_title(); ?>" /></a> <? } ?> <?php } else { ?> <?php if ( get_option('woo_resize') ) { woo_get_image('large-image','150','113','url'); } else { ?> <a href="<?php echo get_post_meta($post->ID, "url", $single = true); ?>" target="_blank" title="View <?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "image", $single = true); ?>" alt="<?php the_title(); ?>" /></a> <? } ?> <?php } ?> <span><?php the_category(','); ?></span> </div> </div> <div class="theme"> <div class="grid_4 alpha"><h2><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2></div> <div class="grid_4 alpha"><h2><a href="<?php echo get_post_meta($post->ID, 'download', TRUE); ?>">Download </a> <a href="<?php echo get_post_meta($post->ID, 'test', TRUE); ?>">Demo</a></h2></div> <div class="grid_2 omega"><p class="date">Added on <?php the_time('d M y'); ?></p></div> <div style="clear:both;"></div> <div class="grid_4 alpha"><p class="tags"><?php the_tags('', ', ' , ''); ?></p></div> <div class="grid_2 omega" style="text-align:right;"><?php if(function_exists('the_ratings')) { the_ratings(); } ?> </div> <div style="clear:both;"></div> </div> </div><!-- /post --> <div style="clear:both;height:10px;"></div> </div> <?php if ( $counter == 0 ) { ?><div style="clear:both;height:0px;"></div><?php } ?> <?php endwhile; ?> <div style="clear:both;height:0px;"></div> <div id="postnav"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> </div><!-- /postnav --> </div><!-- /leftcontent --> <?php get_sidebar(); ?> </div><!-- /container_16 --> </div><!-- /content --> <?php get_footer(); ?>Her türlü yaptım ancak içinden çıkamadım usta bir baksana kodlara? Ben download diye bir link verdim anasayfada.Kullanamak istediğim tema BURADA demosu var. Anasayfadaki resimleri aynı boyutta yapmam lazım. - 31-03-2009, 19:40:29
<?php get_header(); ?> <div id="content" class="fullspan"> <div class="container_16 clearfix"> <div id="leftcontent" class="grid_12"> <?php $counter = 0; $counter2 = 0; while (have_posts()) : the_post(); ?> <?php $counter++; $counter2++; ?> <div class="grid_6 <?php if ($counter == 1) { echo 'alpha'; } else { echo 'omega'; $counter = 0; } ?>"> <div class="post"> <div class="screenshot"> <div class="screenimg"> <?php if ( get_option('woo_layout') == '1-photo.php' ) { ?> <?php if ( get_option('woo_resize') ) { woo_get_image('large-image','150','113'); } else { ?> <a href="<?php the_permalink() ?>" title="View <?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "image", $single = true); ?>" alt="<?php the_title(); ?>" width="1000px" height="1000px"/></a> <? } ?> <?php } else { ?> <?php if ( get_option('woo_resize') ) { woo_get_image('large-image','150','113','url'); } else { ?> <a href="<?php echo get_post_meta($post->ID, "url", $single = true); ?>" target="_blank" title="View <?php the_title(); ?>"><img src="<?php echo get_post_meta($post->ID, "image", $single = true); ?>" alt="<?php the_title(); ?>" width="1000px" height="1000px"/></a> <? } ?> <?php } ?> <span><?php the_category(','); ?></span> </div> </div> <div class="theme"> <div class="grid_4 alpha"><h2><a title="<?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2></div> <div class="grid_4 alpha"><h2><a href="<?php echo get_post_meta($post->ID, 'download', TRUE); ?>">Download </a> <a href="<?php echo get_post_meta($post->ID, 'test', TRUE); ?>">Demo</a></h2></div> <div class="grid_2 omega"><p class="date">Added on <?php the_time('d M y'); ?></p></div> <div style="clear:both;"></div> <div class="grid_4 alpha"><p class="tags"><?php the_tags('', ', ' , ''); ?></p></div> <div class="grid_2 omega" style="text-align:right;"><?php if(function_exists('the_ratings')) { the_ratings(); } ?> </div> <div style="clear:both;"></div> </div> </div><!-- /post --> <div style="clear:both;height:10px;"></div> </div> <?php if ( $counter == 0 ) { ?><div style="clear:both;height:0px;"></div><?php } ?> <?php endwhile; ?> <div style="clear:both;height:0px;"></div> <div id="postnav"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> </div><!-- /postnav --> </div><!-- /leftcontent --> <?php get_sidebar(); ?> </div><!-- /container_16 --> </div><!-- /content --> <?php get_footer(); ?>bu kodla değiştir 1000 olan yerleri kendine göre düzenle... - 01-04-2009, 14:35:24Üyeliği durdurulduLifestyle temasında nasıl halledicez bunu. Anasayfada 100x100 gözükmesi lazım ama tekil sayfada 400x250 mesela?
- 01-04-2009, 14:48:15anasayfa için home.php içini aç bu kodu bulWebdoktorz adlı üyeden alıntı: mesajı görüntüle
<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>
bunla değiş
<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(); ?>" width="100" height="100"/></a>
tekil yazı için ise alttaki linke bak
WordPress ile Otomatik Resim Küçültme - Wordpress Destek