Hocam ekledim ama olmadı galiba yanlış yere ekledim
İndex.php yi veriyorum yardımcı olursanız:
<?php get_header(); ?>
<div class="art-contentLayout">

<?php 
global $default_sidekonumum;
 $sidekonumum = get_option('sidekonumum');
 if ($sidekonumum === false) $sidekonumum= $default_sidekonumum;

$sayi = (stripslashes($sidekonumum));

if ($sayi=="Sol") { ?>
<?php include (TEMPLATEPATH . '/sidebar1.php'); ?>

<?php } ?>


<div class="art-content" style="margin-left:3px;">
<div class="ortablokust">Popüler Videolar</div>
				<?php include(TEMPLATEPATH . '/includes/popular.php' ); ?>                    



<?php if (have_posts()) : ?>

<div class="ortablokust">Yeni Videolar</div>
<div class="ortablokorta">

<?php 
global $default_yenivideo;
 $yenivideo = get_option('yenivideo');
 if ($yenivideo === false) $yenivideo= $default_yenivideo;

$sayi = (stripslashes($yenivideo));
?>

<?php $posts=query_posts($query_string . '&posts_per_page='.$sayi); ?>
<?php while (have_posts()) : the_post(); ?>

<div class="item">


<?php 
$resmim= get_post_meta($post->ID, "kucuk_resim", true);
if ($resmim!="") { ?>
<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('%s', 'kubrick'), the_title_attribute('echo=0')); ?>">
<img class="alignleft" src="<?php echo $resmim ?>" width="90" height="75" alt="" /> </a>
<?php } else { ?>

<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('%s', 'kubrick'), the_title_attribute('echo=0')); ?>"><img  class="alignleft" src="<?php  echo resimsec(); ?>" width="90" height="75" alt="" /></a>

<?php } ?>


<h2 class="art-PostHeaderIcon-wrapper">
<span class="art-PostHeader"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('%s', 'kubrick'), the_title_attribute('echo=0')); ?>">
<?php trim_title(); ?>
</a></span>
</h2>


<div class="art-PostHeaderIcons art-metadata-icons">
<span style="color:#d60000;">Tarih:</span> <span style="color:#3c83af;"><?php the_time(__('F jS, Y', 'kubrick')) ?></span>
<br/>
eklediğim yer
<?php
global $cat;
echo '<img src="http://www.diziizliyoruz.net/thumbs/'.$cat->ID.'.jpg" />';
?> 

<div style="min-height:28px;max-height:28px;">
<?php printf(__('<span style="color:#d60000;">Kategori:</span> %s', 'kubrick'), get_the_category_list(', ')); ?>
</div>

<div style="float:right;width:100px;text-align:right;">
<?php comments_popup_link(__('Yorum yok »', 'kubrick'), __('1 yorum »', 'kubrick'), __('% yorum »', 'kubrick'), '', __('Yorumlar kapalı', 'kubrick') ); ?>
</div>
<div class="altbilgi">
<span style="color:#d60000;">İzlenme: </span>  <span style="color:#3c83af;"> <?php if(function_exists('the_views')) { the_views(); } ?>  </span>
</div>


</div>



<div class="cleared"></div>

</div>

<?php endwhile; ?>

<?php 
global $default_sayfala;
 $sayfala = get_option('anasayfala');
 if ($sayfala === false) $sayfala= $default_sayfala;

$sayi = (stripslashes($sayfala));


if ($sayi=="Göster") { ?>
<div style="text-align:center;padding:5px 0 5px 0;">
     <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>  
</div>
<?php } ?>



<div class="cleared"></div>
</div>

<div class="ortablokalt"></div>

<div class="ortablokust">Rastgele Videolar</div>
<?php include(TEMPLATEPATH . '/rastgele.php' ); ?>                    

<?php else : ?>
<h2 class="center"><?php _e('Bulunamadı.', 'kubrick'); ?></h2>
<p class="center"><?php _e('Bu siteye henüz içerik eklenmemiş.', 'kubrick'); ?></p>
<?php if(function_exists('get_search_form')) get_search_form(); ?>
<?php endif; ?>

</div>

<?php 
global $default_sidekonumum;
 $sidekonumum = get_option('sidekonumum');
 if ($sidekonumum === false) $sidekonumum= $default_sidekonumum;

$sayi = (stripslashes($sidekonumum));

if ($sayi=="Sağ") { ?>
<?php include (TEMPLATEPATH . '/sidebar1.php'); ?>

<?php } ?>



</div>
<div class="cleared"></div>

<?php get_footer(); ?>