İyinet'e Hoşgeldiniz!

Türkiye'nin En Eski Webmaster Forum'una Hemen Kayıt Olun!

Kayıt Ol!

Wordpress Temasını Thumbnaile Nasıl Uyumlu Yapabilirz ?

dahi

0
İyinet Üyesi
Katılım
15 Ekim 2007
Mesajlar
166
Reaction score
0
Merhaba arkadaşlar kullandığım tema AdivoBestReady thumbnail olayını bi türlü yapamadım,thumnnaile uyumlu temalarda özel alana thumbnail yazıp çıkan kısma küçük resmi ekleyeyip indexe gönderebiliyoruz ama benim tema uyumlu değil, sanırım uyumlu yapmak için index.php bi kaç meta ekleniyor ama tüm denemelerimden bir sonuç alamadım index.php bi bölümü aşagıda nereye nasıl bi kod eklemeliyiz arkadaşlar ? www.devletsah.com ve www.fulldizi.com gibi yapmaya çalışıyorum.

Kod:
<?php if (have_posts()) : ?>
		<?php $count = 1 ?>
		<?php while (have_posts()) : the_post(); ?>
				
			<div class="post" id="post-<?php the_ID(); ?>">
				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
				
				<div class="entry">
					<?php the_content('Read the rest of this entry »'); ?>
				</div>
		
				<p class="postmetadata"><small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --> | Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit','',' |'); ?>  <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></small></p>
			</div>
			
			<?php if ($count==2) { include('adsense_homepage_banner.php'); } ?>
			
			<?php $count = $count + 1; ?>
	
		<?php endwhile; ?>
 

TuRKuaZz

0
İyinet Üyesi
Katılım
20 Ocak 2005
Mesajlar
564
Reaction score
1
Konum
Kerkük
Kod:
<?php if (have_posts()) : ?>
		<?php $count = 1 ?>
		<?php while (have_posts()) : the_post(); ?>
				
			<div class="post" id="post-<?php the_ID(); ?>">
				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
				
				<div class="entry">
					<img style="margin:5px 0px 10px 0px" border="0" src="<?php $values = get_post_custom_values("resim"); echo $values[0]; ?>" alt="<?php the_title(); ?>" />
<?php the_content('Read the rest of this entry »'); ?>
				</div>
		
				<p class="postmetadata"><small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --> | Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit','',' |'); ?>  <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></small></p>
			</div>
			
			<?php if ($count==2) { include('adsense_homepage_banner.php'); } ?>
			
			<?php $count = $count + 1; ?>
	
		<?php endwhile; ?>

Bak senin kodların içine
Kod:
<img style="margin:5px 0px 10px 0px" border="0" src="<?php $values = get_post_custom_values("resim"); echo $values[0]; ?>" alt="<?php the_title(); ?>" />
kodunu ekledim.

Yazı ya da içerik eklerken Özel Alanlar'dan resim diye ekleyeceksin.
Bu olayı kullandığım; http://www.diziizletr.net/
;)
 

dahi

0
İyinet Üyesi
Katılım
15 Ekim 2007
Mesajlar
166
Reaction score
0
hakkaten oldu çok teşekkür ederim dostum ben ilk eklerken özel alanlarda hata yapıyormuşum ilk thumbnail özel alan ekle diyordum sonra resim linkini verip güncelle diyordum oda doğal olrak hata veriyordu sorun kodlarda deyip geçiştiriyordum şimdi kodlar tam oturunca özel alanlarda hata yaptığımın farkına vardım sayende tekrardan teşekkür ederim..
 

dahi

0
İyinet Üyesi
Katılım
15 Ekim 2007
Mesajlar
166
Reaction score
0
son eklediğim konular başarılı oldu hallettim.. Eski konulara ufak bir sorgu ile sabit bir resim yapabilirmiyiz 2000 yakın post var da :)
 

dahi

0
İyinet Üyesi
Katılım
15 Ekim 2007
Mesajlar
166
Reaction score
0
eywallah üstadim senin sayende önemli olan kısmını yaptık, belki sorgu şeklinide bilen bir arkadaşımız vardir
 

umuture

0
İyinet Üyesi
Katılım
20 Kasım 2006
Mesajlar
508
Reaction score
0
Konum
no comment
sanırım değer vermelisin yani resim varsa çek,yoksa sabit olarak bunu kullan gibisinden yani ben öle biliyorum onuda söyle yaptım ben kullanıyorumda
Kod:
<?php if (have_posts()) : ?>
		<?php $count = 1 ?>
		<?php while (have_posts()) : the_post(); ?>
				
			<div class="post" id="post-<?php the_ID(); ?>">
				<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
				
				<div class="entry">
					<img style="margin:5px 0px 10px 0px" border="0" src="<?php $values = get_post_custom_values("resim"); echo $values[0]; ?>" alt="<?php the_title(); ?>" /><?php } else { ?> <!-- DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED -->
				
				<img src="<?php bloginfo('template_directory'); ?>/resim_yok.jpg" alt="" class="th" />
				
			<?php } ?>
<?php the_content('Read the rest of this entry »'); ?>
				</div>
		
				<p class="postmetadata"><small><?php the_time('F jS, Y') ?> <!-- by <?php the_author() ?> --> | Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit','',' |'); ?>  <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></small></p>
			</div>
			
			<?php if ($count==2) { include('adsense_homepage_banner.php'); } ?>
			
			<?php $count = $count + 1; ?>
	
		<?php endwhile; ?>

eklediğim kod
Kod:
<?php } else { ?> <!-- DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED -->
				
				<img src="<?php bloginfo('template_directory'); ?>/resim_yok.jpg" alt="" class="th" />
				
			<?php } ?>

bunu denemeden önce dosyalarının yedeğini al çünkü tam emin değilim kodu tam yerine yerleştirdim mi diye deniyemedim
değer girilmediğinde gelicek resim yeri tema klasörünün içidir hostunda oraya resim_yok.jpg adında bir resim koy ve dene :)
 

dahi

0
İyinet Üyesi
Katılım
15 Ekim 2007
Mesajlar
166
Reaction score
0
else olayı çok zekice ama bu hatayı alıyoruz Else kodunu ekleyince de

Parse error: syntax error, unexpected '}' in /home/KULLANICI/public_html/wp-content/themes/Temamız/index.php on line 34
 

umuture

0
İyinet Üyesi
Katılım
20 Kasım 2006
Mesajlar
508
Reaction score
0
Konum
no comment
arkadaşım tema adını tam olarak verirsen bi bakıcam ama yukarda verdiğin isimli tema bulamadım
 

qurhanweb

0
İyinet Üyesi
Katılım
1 Şubat 2008
Mesajlar
30
Reaction score
0
ben de wp de bot kullanıyorum botla ekledim zaman resimleri eklemiyo thumbnail olarak eklemesi için napmam lazım
 

Türkiye’nin ilk webmaster forum sitesi iyinet.com'da forum üyeleri tarafından yapılan tüm paylaşımlardan; Türk Ceza Kanunu’nun 20. Maddesinin, 5651 Sayılı Kanununun 4. maddesinin 2. fıkrasına göre, paylaşım yapan üyeler sorumludur.

Backlink ve Tanıtım Yazısı için iletişime geçmek için Skype Adresimiz: .cid.1580508955483fe5

Üst