
Bir slider kısmı oluşturdum, solda tarafta ki kısımda sorun yok hareketli banner olduğu için sırayla kayıp gidiyor kendisi.
Lakin sağ tarafta ki kısımda ayrı ayrı 3 tane yazı görünsün istiyorum. Fakat kodlarını yerleştirmem sebebiyle 3 farklı div'de de aynı kod olduğu için son yazı listeleniyor.
Ben isityorum ki sağ tarafta da sırasıyla son, sondan bir önce ki, ondan bir önce ki şeklinde son 3 yazı listelenmiş olsun. Şİmdi ki gibi aynı yazılar değil.
Yardımcı olabilir misiniz?
<div class="col-md-12 col-xs-12 col-sm-12 hidden-sm hidden-xs">
<div id="banner">
<div id="anaslayt" class="col-xs-12 col-sm-12">
<?php if(function_exists('rps_show')) echorps_show(); ?>
<?php query_posts('showposts=10'); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if(has_post_thumbnail()) { the_post_thumbnail(); }
elseif( $thumbnail = get_post_meta($post->ID, 'resim', true) ){ ?>
<img src ="<?php echo $thumbnail; ?>" alt="<?php the_title(); ?>" title = "<?php the_title(); ?>" />
<?php } ?>
<div class="yaziarka">
<span class="yazi"><?php the_title(); ?></span>
</div>
<?php endwhile;?>
</div>
<div id="sabitbanner" class="pull-right hidden-sm hidden-xs">
<div class="yatayhaber">
<?php if(function_exists('rps_show')) echorps_show(); ?>
<?php query_posts('showposts=1'); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if(has_post_thumbnail()) { the_post_thumbnail(); }
elseif( $thumbnail = get_post_meta($post->ID, 'resim', true) ){ ?>
<img src ="<?php echo $thumbnail; ?>" alt="<?php the_title(); ?>" title = "<?php the_title(); ?>" />
<?php } ?>
<span class="yazi pull-left col-md-12"><?php the_title(); ?></span>
</a>
<?php endwhile;?>
</div>
<div class="dikeyhaber">
<?php query_posts('showposts=1'); ?>
<?php if(function_exists('rps_show')) echorps_show(); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if(has_post_thumbnail()) { the_post_thumbnail(); }
elseif( $thumbnail = get_post_meta($post->ID, 'resim', true) ){ ?>
<img src ="<?php echo $thumbnail; ?>" alt="<?php the_title(); ?>" title = "<?php the_title(); ?>" />
<?php } ?>
<span class="yazi pull-left col-md-12"><?php the_title(); ?></span></a>
<?php endwhile;?>
</div>
<div class="dikeyhaber">
<?php query_posts('showposts=1'); ?>
<?php if(function_exists('rps_show')) echorps_show(); ?>
<?php while (have_posts()) : the_post(); ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
<?php if(has_post_thumbnail()) { the_post_thumbnail(); }
elseif( $thumbnail = get_post_meta($post->ID, 'resim', true) ){ ?>
<img src ="<?php echo $thumbnail; ?>" alt="<?php the_title(); ?>" title = "<?php the_title(); ?>" />
<?php } ?>
<span class="yazi pull-left col-md-12"><?php the_title(); ?></span></a>
<?php endwhile;?>
</div>
</div></div>
</div>