Our First Dynamic Page

In this video, we'll write some HTML and PHP. If you're unfamiliar with these languages, you can still proceed. However, you should watch our courses on HTML and PHP to really understand the code.

wp-content/themes/customtheme/index.php

<?php if ( have_posts() ) : ?>
    <?php while ( have_posts() ) : the_post(); ?>
        <?php the_content(); ?>
    <?php endwhile; ?>
<?php endif; ?>