• 06-03-2018, 15:02:06
    #1
    Arkadaşlar merhaba, aşağıda ki kodların çıktısı resimde ki gibidir:

    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>
  • 06-03-2018, 15:13:09
    #2
    Üyeliği durduruldu
    Buyur hocam bir dene yanlış varsa düzeltiriz.

    <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&posts_per_page=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=2&offset=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>
  • 06-03-2018, 15:17:46
    #3
    Snipes adlı üyeden alıntı: mesajı görüntüle
    Buyur hocam bir dene yanlış varsa düzeltiriz.

    <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&posts_per_page=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=2&offset=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>
    Hocam çok teşekkür edeirm oldu lakin sadece son yazı bir önceki yazının altında kaldı, http://prntscr.com/inkbsu css sebebiyle mi css mi müdahale edeyim
  • 06-03-2018, 15:20:32
    #4
    Üyeliği durduruldu
    YavuzTR adlı üyeden alıntı: mesajı görüntüle
    Hocam çok teşekkür edeirm oldu lakin sadece son yazı bir önceki yazının altında kaldı, http://prntscr.com/inkbsu css sebebiyle mi css mi müdahale edeyim
    div leri ve css kontrol et hocam eksik veya fazlalık olabilir.
  • 06-03-2018, 17:33:25
    #5
    <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&posts_per_page=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>
              
            <?php query_posts('showposts=2&offset=1'); ?>
                <?php if(function_exists('rps_show')) echorps_show(); ?> 
                <?php while (have_posts()) : the_post(); ?>
            <div class="dikeyhaber">
                <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>
    </div>    
                <?php endwhile;?>
                 
    </div>
    </div>
    </div>
    Böyle dener misin?
  • 06-03-2018, 17:39:30
    #6
    Onur89TR adlı üyeden alıntı: mesajı görüntüle
    <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&posts_per_page=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> <?php query_posts('showposts=2&offset=1'); ?> <?php if(function_exists('rps_show')) echorps_show(); ?> <?php while (have_posts()) : the_post(); ?> <div class="dikeyhaber"> <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> </div> <?php endwhile;?> </div> </div> </div>
    Böyle dener misin?
    Çok teşekkür ederim hocam hepinize sorun çözüldü