Merhaba Arkadaşlarım;
Bu konuyu başka bir yere yanlışlıkla açtım.Doğru yer burasıymış sanırım.
Benim 2 yıllık eski bir temam var.Bu tema görselleri yani Anasayfa'da görünecek resimleri Özel Alanda "resim" ile tanımlanmış bir özel alan ile dışarıdan çekiyordum.
Şimdi Sahifa isimli bir temaya geçeceğim.Bu tema anasayfa resimlerini Öne Çıkartılmış Görsel olarak çekiyor.Benim Budurumda 2 seçeneğim var.
1. Öne Çıkarılmış Görsel Resimleri Dışarıdan Bir URL ile kullanılacak şekilde ayarlamak
2. Öne Çıkarılmış Görsel'i Özel Alan'a çevirip o şekilde kullanmak gerekiyor.
Üniv Mezunu İşsiz Birisiyim.Para kazanmıyorum.Bu yüzden ücret ödeyemiyorum malesef.Ücretsiz olarak bana yardımcı olmak isteyen arkadaşın 1 aylık reklamını sitemdeki reklam alanlarında yapabilirim.Şimdiden teşekkür ederim.
Eski Tema " Sonkral.net " Yeni Tema sonkral.net/hazir
Buda Tema'nın Anasayfasındaki Resimlerin Olması gerektiği gibi halidir.Bu şekilde olacak yani.Aslında Öne Çııkarılmış Görseli Direk özel Alan Şeklinde Çevirebilsek daha rahat olurdu.
http://themes.tielabs.com/sahifa/
Sahifa Teması Özel Alan İle Resim Kullanmak
6
●1.214
- 27-06-2014, 01:18:39Sahifa temasında anasayfadaki öne çıkarılmış görsel bölümlerinin kodlarını aşağıdakiler ile değiştirirsen yazılarında ki "resim" özel alanını çekecektir.
<?php if( get_post_meta($post->ID, "resim", true) ): ?> <?php echo get_post_meta($post->ID, "resim", true); ?> <?php else: ?> Eğer görsel kullanılmıyorsa, default görsel için buraya görsel eklenebilir. <?php endif; ?>
- 27-06-2014, 01:22:59Merhaba Teşekkür ederim.Sizin verdiğiniz kodları tam olarak nereye yapiştirmam gerekiyor ? Anasayfa İndex Bu şekilde,düzenlerseniz sevinirim.YouSuf adlı üyeden alıntı: mesajı görüntüle
<?php get_header(); ?> <?php if( tie_get_option( 'slider_pos' ) == 'big') get_template_part('includes/slider');// Get Slider template ?> <div class="content"> <?php if( tie_get_option( 'slider_pos' ) != 'big') get_template_part('includes/slider'); // Get Slider template ?> <?php if( tie_get_option('on_home') != 'boxes' ){ get_template_part( 'loop', 'index' ); if ($wp_query->max_num_pages > 1) tie_pagenavi(); }else{ $cats = get_option( 'tie_home_cats' ) ; if($cats) foreach ($cats as $cat) tie_get_home_cats($cat); else _e( 'Menüleri oluşturmak için WP menü oluşturucu kullanabilirsiniz' , 'tie' ); tie_home_tabs(); } ?> </div><!-- .content /--> <?php get_sidebar(); ?> <?php get_footer(); ?> - 27-06-2014, 01:36:39Hocam Loop sayfasında 2 farklı yerde thumbnail kodları var.Ben pek anlamıyorum.Bozup düzeltememekten korkuyorum.YouSuf adlı üyeden alıntı: mesajı görüntüle
Loop.php kodları
<?php if ( ! have_posts() ) : ?> <div id="post-0" class="post not-found post-listing"> <h2 class="post-title"><?php _e( 'Not Found', 'tie' ); ?></h2> <div class="entry"> <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'tie' ); ?></p> <?php get_search_form(); ?> </div> </div> <?php else : ?> <div class="post-listing"> <?php while ( have_posts() ) : the_post(); ?> <?php if( tie_get_option( 'blog_display' ) != 'full_thumb' ): ?> <article <?php tie_post_class('item-list'); ?>> <h2 class="post-box-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php get_template_part( 'includes/archives-meta' ); ?> <?php if( tie_get_option( 'blog_display' ) == 'content' ): ?> <div class="entry"> <?php the_content( __( 'Read More »', 'tie' ) ); ?> </div> <?php else: ?> <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) : ?> <div class="post-thumbnail"> <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"> <?php the_post_thumbnail('thumbnail'); ?> <span class="overlay-icon"></span> </a> </div><!-- post-thumbnail /--> <?php endif; ?> <div class="entry"> <p><?php tie_excerpt() ?> <a class="more-link" href="<?php the_permalink() ?>"><?php _e( 'Read More »', 'tie' ) ?></a></p> </div> <?php endif; ?> <?php if( tie_get_option( 'archives_socail' ) ) get_template_part( 'includes/post-share' ); // Get Share Button template ?> <div class="clear"></div> </article><!-- .item-list --> <?php else: ?> <article <?php tie_post_class('item-list'); ?>> <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) : ?> <div class="post-thumbnail single-post-thumb archive-wide-thumb"> <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php tie_thumb( 'slider' ); ?><span class="overlay-icon"></span></a> </div> <div class="clear"></div> <?php endif; ?> <h2 class="post-box-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php get_template_part( 'includes/archives-meta' ); ?> <div class="entry"> <p><?php tie_excerpt() ?> <a class="more-link" href="<?php the_permalink() ?>"><?php _e( 'Read More »', 'tie' ) ?></a></p> </div> <?php if( tie_get_option( 'archives_socail' ) ) get_template_part( 'includes/post-share' ); // Get Share Button template ?> <div class="clear"></div> </article><!-- .item-list --> <?php endif; ?> <?php endwhile;?> </div> <?php endif; ?> - 27-06-2014, 22:55:45Aşağıda ki gibi düzenleyip gönder bakalım hocam.
<?php if ( ! have_posts() ) : ?> <div id="post-0" class="post not-found post-listing"> <h2 class="post-title"><?php _e( 'Not Found', 'tie' ); ?></h2> <div class="entry"> <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'tie' ); ?></p> <?php get_search_form(); ?> </div> </div> <?php else : ?> <div class="post-listing"> <?php while ( have_posts() ) : the_post(); ?> <?php if( tie_get_option( 'blog_display' ) != 'full_thumb' ): ?> <article <?php tie_post_class('item-list'); ?>> <h2 class="post-box-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php get_template_part( 'includes/archives-meta' ); ?> <?php if( tie_get_option( 'blog_display' ) == 'content' ): ?> <div class="entry"> <?php the_content( __( 'Read More »', 'tie' ) ); ?> </div> <?php else: ?> <?php if( get_post_meta($post->ID, "resim", true) ): ?> <div class="post-thumbnail"> <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"> <?php echo get_post_meta($post->ID, "resim", true); ?> <span class="overlay-icon"></span> </a> </div><!-- post-thumbnail /--> <?php endif; ?> <div class="entry"> <p><?php tie_excerpt() ?> <a class="more-link" href="<?php the_permalink() ?>"><?php _e( 'Read More »', 'tie' ) ?></a></p> </div> <?php endif; ?> <?php if( tie_get_option( 'archives_socail' ) ) get_template_part( 'includes/post-share' ); // Get Share Button template ?> <div class="clear"></div> </article><!-- .item-list --> <?php else: ?> <article <?php tie_post_class('item-list'); ?>> <?php if ( function_exists("has_post_thumbnail") && has_post_thumbnail() ) : ?> <div class="post-thumbnail single-post-thumb archive-wide-thumb"> <a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php tie_thumb( 'slider' ); ?><span class="overlay-icon"></span></a> </div> <div class="clear"></div> <?php endif; ?> <h2 class="post-box-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'tie' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2> <?php get_template_part( 'includes/archives-meta' ); ?> <div class="entry"> <p><?php tie_excerpt() ?> <a class="more-link" href="<?php the_permalink() ?>"><?php _e( 'Read More »', 'tie' ) ?></a></p> </div> <?php if( tie_get_option( 'archives_socail' ) ) get_template_part( 'includes/post-share' ); // Get Share Button template ?> <div class="clear"></div> </article><!-- .item-list --> <?php endif; ?> <?php endwhile;?> </div> <?php endif; ?> - 27-06-2014, 22:59:42Malesef hocam buda olmadı ne acayip bir şeymiş ya inanın dün gece 01.35'den beri sizi bekliyorum,belki siz yardımcı olabilir siniz diyeYouSuf adlı üyeden alıntı: mesajı görüntüle