• In this file, we include the header, main content, and footer for a WordPress page.
  • The get_header() and get_footer() functions are used to include the site's global header and footer templates.
  • The WordPress Loop is used to output the content of the current page or post using the_content().
<?php get_header(); ?>

<div id="primary" class="content-area">
    <main id="main" class="site-main" role="main">
        <?php
            while ( have_posts() ) : the_post();
                the_content();
            endwhile;
        ?>
    </main>
</div>

<?php get_footer(); ?>