4. The Simplest Index.php file <?php get_header(); if (have_posts()) : while (have_posts()) : the_post(); the_content(); endwhile; Endif; get_sidebar(); get_footer(); ?>
5. “ The Loop” <?php if (have_posts()) : while (have_posts()) : the_post(); ?> Stuff to display for each Post <?php endwhile; ?> <?php else : ?> Stuff to display if no posts are returned by the have_posts() function <?php endif; ?>