WP_Query articles order by offset in collumns
Separate the posts in two different arrays, then loop over both separately: $columns = array ( ‘first’ => array (), ‘second’ => array () ); $first_column = array( 1, 3, 4, 5, 6, 7 ); // separation foreach ( $the_query->posts as $index => $post ) { if ( in_array( $index + 1, $first_column ) ) … Read more