個別記事ページテンプレートの作成
個別記事ページのテンプレートを作成します。 index.phpをもとにsingle.phpを作成します。
<?php 
//ヘッダーを取得
get_header(); 
while(have_posts() === true){
  the_post(); 
  get_template_part('templates/content', 'single'); 
}
get_footer();
固定ページと同様に、ページネーションは不要なので削除しています。
続いて、content-page.phpをコピーしてcontent-single.phpを作成しておきましょう。
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  <header class="post__header">
    <h2>
        <?php the_title(); ?>
    </h2>
  </header>
  <?php if( has_post_thumbnail() ) { ?>
    <!--サムネイルを表示-->
        <?php the_post_thumbnail(); ?>
  <?php } ?>
  <section class="post__content">
    <p><?php the_content(); ?></p>
  </section>
  <footer class="post__footer">
    <!--フッターはとりあえず確保だけしておきます。-->
  </footer>
</article><!-- #post-<?php the_ID(); ?> -->
今の所、content-page.phpと同様です。 さらに、次ページでコメント欄を追加します。