metin_nn adlı üyeden alıntı: mesajı görüntüle
<?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This also populates the iconsize for the next line ?>


450 ve 800 sayılarını küçültebilirsiniz hocam boyutu küçültmek için.
Hocam aşağıdaki kodda hangi değerler ile oynarsam resim dilediğim boyutta olur?

<?php get_header(); ?>

<div class="banner-ad-share">

<div id="content" class="single">
  <div class="content-block" id="front-list">
    <div class="single_page_inner">
    
      <!-- "Social Slider Code" Start "Avoid to edit" -->
     <?php include(TEMPLATEPATH."/includes/social-slider.php");?>
      <!-- "Social Slider Code" End -->
    
      <div class="breadcrumb"> <a href="<?php echo home_url(); ?>">Ana Sayfa </a> &raquo;
        <?php the_category(' &raquo; ') ?>
      </div>
      <div class="posts" id="article-content">
	       
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        <div class="post" id="post-<?php the_ID(); ?>">
          
          
          <div class="post-meta">
           

            
          </div>
          <!-- "Content Top Ads" Start "Avoid to edit" -->
           
          <!-- "Content Top Ads" End -->
              
          <!-- "Content" Start -->
         
		  <!-- "Content" Start -->
         <div class="image-navigation">
    <?php $attachments = array_values(get_children( array('post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ));
    foreach ( $attachments as $k => $attachment )
        if ( $attachment->ID == $post->ID )
            break;
    $attachments = array_values(get_children( array('post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID') ));
       $next_url =  isset($attachments[$k+1]) ? get_permalink($attachments[$k+1]->ID) : get_permalink($attachments[0]->ID);
       $previous_url =  isset($attachments[$k-1]) ? get_permalink($attachments[$k-1]->ID) : get_permalink($attachments[0]->ID);
    if ( wp_get_attachment_image( $post->ID+1 ) != null ) { ?>
<?php }
 
    if ( wp_get_attachment_image( $post->ID-1 ) != null ) { ?>
        <div class="gallery-previous">
            <a href="<?php echo $previous_url; ?>"><img src="http://www.siteadresi.com/wp-content/themes/tema/resim/geri.png" /></a>
</div>
 <?php } ?>
       <div class="gallery-image-title"><h2><?php the_title(''); ?></h2></div>
	
    
        <div class="gallery-next">
                       <a href="<?php echo $next_url; ?>"><img src="http://www.siteadresi.com/wp-content/themes/tema/resim/ileri.png" /></a>
        </div>
   
</div>

  

<article><?php if (wp_attachment_is_image($post->id)) {
                $att_image = wp_get_attachment_image_src( $post->id, "medium");
                ?>
                <p class="attachment">
                    <a href="" title="<?php the_title(); ?>">
                    <img src="<?php echo $att_image[0];?>" width="<?php echo $att_image[1];?>" height="<?php echo $att_image[2];?>"  class="attachment-medium" alt="<?php $post->post_excerpt; ?>" />
                    </a>
                </p>

                <?php } ?></article></center>
          <!-- "Content" End -->	

			         
          
        </div>
        
       
	   <!-- "Social Big Code" Start -->
	   	
		<!-- "Social Big Code" End -->
        
<!-- "Related Posts Code" Start -->
       	<?php include(TEMPLATEPATH."/includes/related-posts.php");?>
       <!-- "Related Posts Code" End -->
		  
          <!-- "Bottom Tags" Start -->
          <div class="bottom-tag">
          	<div class="flc">Kategori</div>
			 <div class="fr">
			 	<?php the_category(', ') ?> &nbsp;
          	 </div>
            <div class="fl">Etiketler</div>
            <div class="fr">
              <?php the_tags('<span class="tags">', ', ', '</span>'); ?>
            </div>
          </div>
          <!-- "Bottom Tags" End -->
          
          <!-- "Author Box Code" Start -->
           <?php include(TEMPLATEPATH."/includes/author-box.php");?>
           <!-- "Author Box Code" End -->
          
          <!-- "Artical Next Pre Arrow" Start -->
			<?php include(TEMPLATEPATH."/includes/previousnext.php");?>
        <!-- "Artical Next Pre Arrow" End -->
          
   <!-- "Facebook Comment" Start -->
           
         

          <!-- "Facebook Comment" End -->
          
          <!-- "Comment Form" Start -->
          <?php if(get_option('themesdesk_wordpress_comments')!="" && get_option('themesdesk_wordpress_comments')!="no"){ ?>
          <div id="comments">
            <?php comments_template(); ?>
          </div><?php } ?>
          <!-- "Comment Form" End -->
		
        </div>   

        <?php endwhile; else: ?>
        <p>Sorry, no posts matched your criteria.</p>
        <?php endif; ?>
      </div>
      <!-- end post -->
    </div></div>
    <?php get_sidebar(); ?>
  </div>

<?php get_footer(); ?>
</div>