Manipulated offset and pagination, can't display last post anymore

As you can see from the code below, i'd like to show the last post with a design and the other posts with a different design on the first page. For the rest of the archive pages the last post won't be showed.

I manipulated the pagination and offest reading this article : https://codex.wordpress.org/Making_Custom_Queries_using_Offset_and_Pagination

But this is affecting my first loop showing directly the 2° post and ignoring the offset i declared

Any solutions for making the last post work in the first page?

    //Loop for the new post

?php if(is_home()  !is_paged()) { ?
            div class=newest-post
            ?php 
            $args_latest = array( 'post_type' = 'post', offset = 0 );
            $the_last_query = new WP_Query( $args_latest ); 
            if ( $the_last_query-have_posts() ) : ?
                ?php while ( $the_last_query-have_posts() ) : $the_last_query-the_post(); 
             ?
                div class=new-card
                    ?php the_post_thumbnail()?
                /div
                p class=title-2?php the_title();?/p
                div class=text?php the_excerpt()?/div
                a href=?php the_permalink()? Read/a
                ?php
    endwhile; 
endif; ?
            /div
            ?php }?


    //Loop for the others excluding the first 

    if ( have_posts() ) : 
        while ( have_posts() ) : the_post(); 
    ?
                        div class=other-post
                            ?php the_post_thumbnail()?
                        /div
                        p class=title-2?php the_title();?/p
                        p class=text?php the_excerpt()?/p
                        a href=?php the_permalink()?Read/a
      ?php
                endwhile; 
            endif; 
        }?
    
        
                        ?php echo the_posts_pagination(); ?
    

Topic offsets wp-query pagination posts Wordpress

Category Web

About

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