• 07-12-2009, 21:54:53
    #10
    Üyeliği durduruldu
    <?php the_content(); ?>
    kodunun üstüne

    <?php if ( get_post_meta($post->ID, 'thumb', true) ) { ?> <!-- DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD --> 
    
                     
    
                    <div class="resim"><img src="<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>" width="125" height="125" alt="<?php the_title(); ?>" class="th" />        </div>     
    
                     
    
                <?php } else { ?> <!-- DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED --> 
    
                     
    
                    <div class="resim"><img src="<?php bloginfo('template_directory'); ?>/images/no-img-thumb.jpg" width="125" height="125" alt="<?php the_title(); ?>" class="th" /> </div> 
    
                    <?php } ?>
    kodunu ekle.

    style.css dosyasını aç ve en alta

    .resim  img{
    
    	border: 1px solid #dddddd;
    
    	float: left;
    
    	padding: 5px;
    
    	background-color: #FFFFFF;
    
    	margin: 10px 10px 15px 10px;
    
    }
    thumb olarak kullanacaksın özel alanda. resim urlsini girerek.
  • 07-12-2009, 22:11:36
    #11
    Parse error: syntax error, unexpected '}' in /home/esesfanc/public_html/wp-content/themes/StrownesBrown/index.php on line 17
  • 07-12-2009, 22:13:56
    #12
    Üyeliği durduruldu
    Hata vermez content kodunu bu verdiğimle değiştir istersen.

    <?php the_content('<em>Devamını oku &rarr;</em>'); ?>
    Eğer yine yapamazsan pm ile admin panel bilgilerini ver yapıvereyim sonra değiştirirsin.
  • 07-12-2009, 22:17:34
    #13
    Hata var hocam. Aşağıdaki satır hatalı görünüyor.

    <?php } else { ?> <!-- DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED -->
  • 07-12-2009, 22:19:09
    #14
    Üyeliği durduruldu
    Özür dilerim eksik kod vermişim.

    <?php if ( get_post_meta($post->ID, 'thumb', true) ) { ?> <!-- DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD -->
    
    				
    
    				<div class="resim"><img src="<?php echo get_post_meta($post->ID, "thumb", $single = true); ?>" width="125" height="125" alt="<?php the_title(); ?>" class="th" />		</div>	
    
    				
    
    			<?php } else { ?> <!-- DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED -->
    
    				
    
    				<div class="resim"><img src="<?php bloginfo('template_directory'); ?>/images/no-img-thumb.jpg" width="125" height="125" alt="<?php the_title(); ?>" class="th" /> </div>
    
    				<?php } ?>
  • 07-12-2009, 22:21:58
    #15
    Yine kocaman çıktı resim.
  • 07-12-2009, 22:24:26
    #16
    Üyeliği durduruldu
    Düzgün çıkıyor ben de.

    Fakat yazılarınızdan bazıları kısa olduğu için iç içe giriyorlar.
  • 07-12-2009, 22:25:51
    #17
    MSN adresinizi PM ile gönderin lütfen.
  • 07-12-2009, 22:27:55
    #18
    kodlar dogru hocma bendede oldu gibi