• 11-04-2014, 21:39:15
    #1
    Arkadaşlar çok acil ve önemli bir konu resimleri ileri ve geri şeklinde yapmak istiyorum yardıma ihtiyacım var
    http://www.mavimenekse.com/farkli-li...ml/cicekli-lif

    bunun gibi
  • 11-04-2014, 21:55:14
    #2
    PHP - WORDPRESS - YAZILIM
    daha önceki bir konuda da vermiştim
    http://www.metinsarac.net/wordpress-...hp-ornegi.html

    buradan istediğiniz görseli elde edebilirsiniz hocam kolay gelsin.
  • 12-04-2014, 00:06:09
    #3
    metin_nn adlı üyeden alıntı: mesajı görüntüle
    daha önceki bir konuda da vermiştim
    http://www.metinsarac.net/wordpress-...hp-ornegi.html

    buradan istediğiniz görseli elde edebilirsiniz hocam kolay gelsin.
    Kardeş resmin boyutu çok büyük oldu onu nasıl ayarlarım acaba
  • 12-04-2014, 01:17:06
    #4
    PHP - WORDPRESS - YAZILIM
    mehmetkaya adlı üyeden alıntı: mesajı görüntüle
    Kardeş resmin boyutu çok büyük oldu onu nasıl ayarlarım acaba
    <?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.
  • 12-04-2014, 01:26:47
    #5
    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.
    Sana bir pm gönderdim hocam bir bakarsan çok sevinirim
  • 13-04-2014, 18:16:53
    #6
    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>
  • 13-04-2014, 21:19:08
    #7
    PHP - WORDPRESS - YAZILIM
    <?php if (wp_attachment_is_image($post->id)) {
    $att_image = wp_get_attachment_image_src( $post->id, "medium");
    ?>

    Bulup

    <?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This also populates the iconsize for the next line ?>


    bu şekil değiştirin.

    450 800 boyutlarıyla oynayın hocam.