• 03-10-2013, 00:08:01
    #10
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Estağfirullah, İsteğim öne çıkan görselleri url’den eklemek. Tinypic, imageshack, picasaweb tarzı sitelere atıp oradaki resmin url’sini alıp görselin adresini girdikten sonra anasayfada görünmesi.

    <?php
    
    /**
    
     * The main template file.
    
     *
    
     * This is the most generic template file in a WordPress theme
    
     * and one of the two required files for a theme (the other being style.css).
    
     * It is used to display a page when nothing more specific matches a query.
    
     * E.g., it puts together the home page when no home.php file exists.
    
     * Learn more: http://codex.wordpress.org/Template_Hierarchy
    
     *
    
     * @package Visual
    
     * @since Visual 0.1
    
     */
    
    
    
    get_header(); ?>
    
    
    
    	<div id="primary" class="content-area">
    
    		<div id="content" class="site-content" role="main">
    
    
    
    			<?php if ( have_posts() ) : ?>
    
    
    
    				<?php /* Start the Loop */ ?>
    
    				<?php while ( have_posts() ) : the_post(); ?>
    
    
    
    					<?php
    
    						/* Include the Post-Format-specific template for the content.
    
    						 * If you want to overload this in a child theme then include a file
    
    						 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    
    						 */
    
    						get_template_part( 'content', get_post_format() );
    
    					?>
    
    
    
    				<?php endwhile; ?>
    
    
    
    			<?php else : ?>
    
    
    
    				<?php get_template_part( 'no-results', 'index' ); ?>
    
    
    
    			<?php endif; ?>
    
    
    
    			</div><!-- #content .site-content -->
    
    			
    
    		<?php visual_content_nav( 'nav-below' ); ?>
    
    			
    
    		</div><!-- #primary .content-area -->
    
    
    
    <?php get_footer(); ?>
  • 03-10-2013, 00:57:07
    #11
    Hocam, Tema ve kod yapısı açıkcası bilgim dahilinde değil, anasayfa ve resim bulunan alt sayfalar, temanın image.php üzerinden çekmekte ;

                                <?php
                                    $metadata = wp_get_attachment_metadata();
                                    printf( __( 'Published <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>', 'visual' ),
                                        esc_attr( get_the_date( 'c' ) ),
                                        esc_html( get_the_date() ),
                                        wp_get_attachment_url(),
                                        $metadata['width'],
                                        $metadata['height'],
                                        get_permalink( $post->post_parent ),
                                        esc_attr( get_the_title( $post->post_parent ) ),
                                        get_the_title( $post->post_parent )
                                    );
                                ?>
    Ne yazık ki, bu konuda uzman bir arkadaş ile görüşmeniz gerekmekte.
  • 27-11-2016, 01:26:34
    #12
    Hortlatmış gibi olacağım ancak;
    Aynı ihtiyaç bende de hasıl oldu. Şöyle ki; başka bir scriptten wp ye geçiş yaptım. Diğer scriptte tüm resimleri harici url den eklemiştim. Şimdi konuya girince resimler gözüküyor ancak öne çıkan göresel olarak belirleyemiyorum.
    Bir fikri olan var mı acaba?
  • 27-11-2016, 02:56:52
    #13
    EEM
    Üyeliği durduruldu
    burakveelif adlı üyeden alıntı: mesajı görüntüle
    Hortlatmış gibi olacağım ancak;
    Aynı ihtiyaç bende de hasıl oldu. Şöyle ki; başka bir scriptten wp ye geçiş yaptım. Diğer scriptte tüm resimleri harici url den eklemiştim. Şimdi konuya girince resimler gözüküyor ancak öne çıkan göresel olarak belirleyemiyorum.
    Bir fikri olan var mı acaba?
    wordpress'den önce kullandığınız öne çıkan görseli, verileri taşırken wp'ye özel alan olarak çektiniz mi hocam?

    çektiyseniz; temanızda thumbnail görüntülenen kısımlarda gösterilecek resmi bu özel alanı çağırarak gösterebilirsiniz.
  • 27-11-2016, 02:58:37
    #14
    EEM adlı üyeden alıntı: mesajı görüntüle
    wordpress'den önce kullandığınız öne çıkan görseli, verileri taşırken wp'ye özel alan olarak çektiniz mi hocam?

    çektiyseniz; temanızda thumbnail görüntülenen kısımlarda gösterilecek resmi bu özel alanı çağırarak gösterebilirsiniz.
    İlginize teşekkür ederim.
    Sorunumu "auto-post-thumbnail" eklentisi ile çözdüm.
    Çok sağolun
  • 27-11-2016, 03:00:51
    #15
    EEM
    Üyeliği durduruldu
    burakveelif adlı üyeden alıntı: mesajı görüntüle
    İlginize teşekkür ederim.
    Sorunumu "auto-post-thumbnail" eklentisi ile çözdüm.
    Çok sağolun
    rica ederim. iyi çalışmalar.