August 2017
Beginner
412 pages
10h 30m
English
You've now got four template files in your theme folder, namely header.php, footer.php, sidebar.php, and the now-much-shorter index.php. By the way, my index.php file now has only a handful of WordPress functions and the loop. The following is the entire file:
<?php get_header(); ?> <div id="primary" class="content-area"> <main id="main" class="site-main" role="main"> <?php if (have_posts()) : ?> <?php /* Start the Loop */ ?> <?php while (have_posts()) : the_post(); ?> <?php get_template_part('content', get_post_format()); ?> <?php endwhile; ?> <?php daily_cooking_custom_paging_nav(); ?> <?php else : ?> <?php get_template_part('content', 'none'); ?> <?php endif; ?> </main><!-- #main --> </div><!-- #primary --><?php ...Read now
Unlock full access