title: Wordpress Display the Most Recent Post in Each Category + Pagination
body: <p>I have a CPT loop paginated. The order is DESC. I want to show one recent post from each category first and then all the rest on the rest of the pages. Can't find a solution for this. Should I do 2 loops to show one post from each category and then the second loop for all the rest?
  My code for loop is:</p>
  <pre><code>                    $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1;
                      $args = array(
                          'post_type'=&gt; 'publication',
                          'post_status' =&gt; 'publish',
                          'order'    =&gt; 'DESC',
                          'posts_per_page' =&gt; 6,
                          'paged' =&gt; $paged,
                      );
                      if (!empty($_GET['term_list'])){
                          $args['tax_query'] = array(
                              array(
                                  'taxonomy' =&gt; 'publication_type',
                                  'field'    =&gt; 'slug',
                                  'terms'    =&gt; $_GET['term_list'],
                              )
                          );
                      }
                      $publication_terms = wp_get_post_terms( $post-&gt;ID, 'publication_type');
                      $query = new WP_Query( $args );
  
                      if ( $query-&gt;have_posts() ){
                          while ( $query-&gt;have_posts() ) {
                              
                              $query-&gt;the_post(); 
                              $post_id = get_the_ID();
                              $thumb = get_the_post_thumbnail_url( get_the_ID(), 'medium' );
  
                           
                              $terms = get_terms( [
                                  'taxonomy' =&gt; 'publication_type',
                                  'hide_empty' =&gt; true,
                              ] );
                              $publication_terms = wp_get_post_terms( $post-&gt;ID, 'publication_type');
  
                              echo '&lt;div class=&quot;publication-item ';
                                  foreach($publication_terms as $term){
                                    echo  $term-&gt;slug ;
                                  }
                              echo ' &quot;&gt;';
                              
                              echo    '&lt;div class=&quot;entity entity--publication&quot;&gt;
                                      &lt;a href=&quot;' . get_permalink(get_the_ID()) . '&quot; class=&quot;entity__thumb' . (($height &gt; $width) ? &quot; entity__thumb--portrait&quot; : &quot;&quot;) .'&quot; style=&quot;background: url(' . $thumb . ') center; background-size: cover;&quot;&gt;&lt;/a&gt;
                                      &lt;h3&gt;&lt;a href=&quot;' . get_permalink(get_the_ID()) . '&quot;&gt;' . get_the_title() . '&lt;/a&gt;&lt;/h3&gt;';
                              echo '&lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;';
                             
                             
                          } 
                      } 
              
                  ?&gt;
              
  
              &lt;?php wp_reset_query(); 
  </code></pre>