The first post appears twice

The slider I made lists the first article 2 times.

They said I could solve this problem using "post__not_in".

Could you help me figure out how to do this?

div id="banner"
    div id="anaslayt" class="col-xs-12 col-sm-12"
?php query_posts('showposts=10cat=1'); ?
    ?php while (have_posts()) : the_post(); ?
            a class="slidesjs-slide" 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(); ?" //a
            ?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 query_posts('showposts=1cat=1posts_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


    ?php query_posts('showposts=2cat=1offset=1'); ?

        ?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


Topic blogroll wp-query posts customization Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.