• 22-06-2010, 22:49:53
    #1
    Merhaba arkadaşlar..

    Dizi sitemde kullandıgım temada resimlerin yanında etiketlerin çıkmasını istiyorum.. O kısımlar boş duruyor hoş görünmüyor. Kodlar aşağıda örnek resimdeki gibi işaretledim..




    <?php get_header(); ?>
    <?php get_sidebar('left'); ?>
    
    	<div id="body-center">	
    	
    
    		<div id="featur-product-box">
    		  <div class="dataform-box-top"><span class="white-text">Yeni Eklenenler</span></div> 
    			  <?php query_posts('showposts=20'); if (have_posts()) : while (have_posts()) : the_post(); ?>
    				<div class="product-box"> 
    					<div class="product-image"><a href="<?php the_permalink(); ?>" class="red-link" title="<?php the_title(); ?>"><img title="<?php the_title(); ?>" src="<?php $resim = get_post_custom_values("resim"); echo $resim[0]; ?>" alt="<?php the_title(); ?>" style="border-width: 0px; height: 90px; width: 100px;" /></a></div> 
    					<div class="product-disc"><a href="<?php the_permalink(); ?>" class="red-link" title="<?php the_title(); ?>"><?php the_title(); ?></a><br /> İzlenme: <strong><?php $views = get_post_custom_values("views"); echo $views[0]; ?></strong><br /></div> 
    				</div> 
    			  <?php endwhile;endif; ?>
    			<div style="clear:both"></div>
    		</div> 
    
    		<div id="featur-product-box">
    		  <div class="dataform-box-top"><span class="white-text">En Çok İzlenenler</span></div> 
    			  <?php query_posts('showposts=20&v_sortby=views&v_orderby=desc'); if (have_posts()) : while (have_posts()) : the_post(); ?>
    				<div class="product-box"> 
    					<div class="product-image"><a href="<?php the_permalink(); ?>" class="red-link" title="<?php the_title(); ?>"><img title="<?php the_title(); ?>" src="<?php $resim = get_post_custom_values("resim"); echo $resim[0]; ?>" alt="<?php the_title(); ?>" style="border-width: 0px; height: 90px; width: 100px;" /></a></div> 
    					<div class="product-disc"><a href="<?php the_permalink(); ?>" class="red-link" title="<?php the_title(); ?>"><?php the_title(); ?></a><br /> İzlenme: <strong><?php $views = get_post_custom_values("views"); echo $views[0]; ?></strong><br /></div> 
    				</div> 
    			  <?php endwhile;endif; ?>
    			<div style="clear:both"></div>
    		</div> 
    
    	
    </div>
    					
    <?php get_sidebar('right'); ?>
    <?php get_footer(); ?>
  • 22-06-2010, 23:00:32
    #2
    <?php the_tags( 'Etiketler: ', ', ', ''); ?> Şu kodu eklerseniz olması lazım.

    
    
    
    <?php get_header(); ?>
    <?php get_sidebar('left'); ?>
    
        <div id="body-center">    
        
    
            <div id="featur-product-box">
              <div class="dataform-box-top"><span class="white-text">Yeni Eklenenler</span></div> 
                  <?php query_posts('showposts=20'); if (have_posts()) : while (have_posts()) : the_post(); ?>
                    <div class="product-box"> 
                        <div class="product-image"><a href="<?php the_permalink(); ?>" class="red-link" title="<?php the_title(); ?>"><img title="<?php the_title(); ?>" src="<?php $resim = get_post_custom_values("resim"); echo $resim[0]; ?>" alt="<?php the_title(); ?>" style="border-width: 0px; height: 90px; width: 100px;" /></a></div> 
                        <div class="product-disc"><a href="<?php the_permalink(); ?>" class="red-link" title="<?php the_title(); ?>"><?php the_title(); ?></a><br /> İzlenme: <strong><?php $views = get_post_custom_values("views"); echo $views[0]; ?></strong><?php the_tags( 'Etiketler: ', ', ', ''); ?><br /></div> 
                    </div> 
                  <?php endwhile;endif; ?>
                <div style="clear:both"></div>
            </div> 
    
            <div id="featur-product-box">
              <div class="dataform-box-top"><span class="white-text">En Çok İzlenenler</span></div> 
                  <?php query_posts('showposts=20&v_sortby=views&v_orderby=desc'); if (have_posts()) : while (have_posts()) : the_post(); ?>
                    <div class="product-box"> 
                        <div class="product-image"><a href="<?php the_permalink(); ?>" class="red-link" title="<?php the_title(); ?>"><img title="<?php the_title(); ?>" src="<?php $resim = get_post_custom_values("resim"); echo $resim[0]; ?>" alt="<?php the_title(); ?>" style="border-width: 0px; height: 90px; width: 100px;" /></a></div> 
                        <div class="product-disc"><a href="<?php the_permalink(); ?>" class="red-link" title="<?php the_title(); ?>"><?php the_title(); ?></a><br /> İzlenme: <strong><?php $views = get_post_custom_values("views"); echo $views[0]; ?></strong><?php the_tags( 'Etiketler: ', ', ', ''); ?><br /></div> 
                    </div> 
                  <?php endwhile;endif; ?>
                <div style="clear:both"></div>
            </div> 
    
        
    </div>
  • 22-06-2010, 23:07:09
    #3
    Tamam kardeş oldu saol.