İndex.php yi aşağıdaki kodla değiştirin.
<?php get_header(); ?>
<div id="icerik">
<?php $vid = get_option('kt_vid'); ?>
<?php $args = array('cat' => $vid, 'paged' => $paged ); ?>
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts($args); ?>
<div id="konular">
<?php if(get_option('kt_twtonay') == 'evet') { include (TEMPLATEPATH . '/twt.php'); } ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="konu">
<div class="fotog">
<div class="foto2"><a href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail() ) { ?>
<?php the_post_thumbnail('featured-post-thumbnail'); ?>
<?php } else { ?>
<img src="<?php bloginfo('template_url'); ?>/images/yok02.png" alt="<?php the_title(); ?>" />
<?php } ?>
</a>
</div>
</div>
<h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php echo kt_limit($post->post_content, 400); ?>
<div class="yazibilgi"><span class="yazar"><?php the_author(); ?></span><span class="kat"><?php the_category(', ') ?></span><span class="yorum"><?php comments_number('0', '1', '%'); ?> Yorum</span><span class="zaman"><?php the_time('j F Y') ?></span><span class="devami"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Devamı..</a></span></div>
</div>
<?php endwhile; ?>
<div class="temizle"></div>
<div class="sayfalama"><?php echo kt_sayfa(); ?></div>
<div class="ayirac"></div>
<div class="medya">
<?php $video = get_option('kt_video'); ?>
<?php $c = 1; $query3 = new WP_Query();$query3->query('showposts=5&category_name='. $video .''); ?>
<?php while ($query3->have_posts()) : $query3->the_post(); ?>
<?php if ($c == 1) { ?>
<div class="baslik"><?php
$category = get_the_category();
if($category[0]){
echo '<a href="'.get_category_link($category[0]->term_id ).'" title="'.$category[0]->cat_name.'">'.$category[0]->cat_name.'</a>';
}
?></div><?php } ?>
<div class="hobi"><?php $image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); if ( has_post_thumbnail() ) { ?>
<img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo $image_url[0]; ?>&w=50&h=50&zc=1" alt="<?php the_title(); ?>" width="50" height="50" />
<?php } else { ?>
<img src="<?php echo get_post_meta($post->ID, 'resim',true) ?>" alt="<?php the_title(); ?>" width="50" height="50" />
<?php } ?>
<h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<span class="zaman"><?php the_time('j F,Y') ?></span></div>
<?php $c++; endwhile; ?>
<div class="temizle"></div>
</div>
<div class="medya">
<?php $resim = get_option('kt_resim'); ?>
<?php $c = 1; $query3 = new WP_Query();$query3->query('showposts=5&category_name='. $resim .''); ?>
<?php while ($query3->have_posts()) : $query3->the_post(); ?>
<?php if ($c == 1) { ?>
<div class="baslik"><?php
$category = get_the_category();
if($category[0]){
echo '<a href="'.get_category_link($category[0]->term_id ).'" title="'.$category[0]->cat_name.'">'.$category[0]->cat_name.'</a>';
}
?></div><?php } ?>
<div class="hobi"><?php $image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); if ( has_post_thumbnail() ) { ?>
<img src="<?php bloginfo('template_url'); ?>/timthumb.php?src=<?php echo $image_url[0]; ?>&w=50&h=50&zc=1" alt="<?php the_title(); ?>" width="50" height="50" />
<?php } else { ?>
<img src="<?php echo get_post_meta($post->ID, 'resim',true) ?>" alt="<?php the_title(); ?>" width="50" height="50" />
<?php } ?>
<h3><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
<span class="zaman"><?php the_time('j F,Y') ?></span></div>
<?php $c++; endwhile; ?>
<div class="temizle"></div>
</div>
</div>
<?php else : ?>
<div class="yok">
<h2>AradıÄınız Sayfa bulunamamıÅtır.</h2>
<p>AradıÄınız sayfa adresini doÄru yazdıÄınızdan emin olunuz.</p>
</div>
<?php endif; ?>
</div>
<?php get_sidebar(); get_footer(); ?>funtions.php de ?> den önce aşağıdaki kodları yapıştırın.
add_theme_support( 'post-thumbnails' );
set_post_thumbnail_size( 200, 200, true );
add_image_size( 'featured-post-thumbnail', 260, 120 );
style.css dosyanızın en altına aşağıdaki kodları ekleyin
.fotog {
float:left;
margin-right: 10px;
padding: 5px;
}
.foto2 img {
margin-top:10px;
margin-bottom: 10px;
background-color:#FFF;
width:100px;
height:100px;
border: 3px solid #cccccc;
}Son olarak da http://www.designofsignage.com/appli...0/no-photo.jpg resmini images klasörünün icine yok02.png oalarak kaydedip atın.
Konuya resmi eklerken ÖNE ÇIKAN GÖRSEL OLARAK AYARLA diyerek ekleyeceksiniz.
Bunları yapmadan önce yedek almayı unutmayın.