次のように、20 個のテーマ カテゴリの投稿を 2 つの列に水平に表示しています。

以下のコードを使用しています:
<?php if (have_posts()) : while(have_posts()) : $i++; if(($i % 2) == 0) :
$wp_query->next_post(); else : the_post(); ?>
<div id="left-column">
<h1><?php the_permalink(); ?></h1>
<?php the_content(); ?>
</div>
<?php endif; endwhile; else: ?>
<?php endif; ?>
<?php $i = 0; rewind_posts(); ?>
<?php if (have_posts()) : while(have_posts()) : $i++; if(($i % 2) !== 0) : $wp_query->next_post(); else : the_post(); ?>
<div id="right-column">
<h1><?php the_permalink(); ?></h1>
<?php the_content(); ?>
</div>
<?php endif; endwhile; else: ?>
<?php endif; ?>
投稿#1をクリックして単一の投稿表示ページに移動すると、投稿全体が表示され、ページの上部/下部に2つのリンク(次の投稿、前の投稿)が表示されます。次に、次の投稿リンクをクリックすると、投稿 #3 が表示されます。しかし、投稿#2、投稿#3、投稿#4を表示する必要があります....どうすれば可能ですか?
ありがとう