/** * Template Name: creationcache * This is the template to display a single creation cache * @author Paul Taylor * @package ocws-creationcache * @version 0.5 **/ get_header(); ?> <!-- HTML for the structure --> <div id="ocwscc_mainsection"> <?php while (have_posts()) { the_post(); ?> <?php ocwscc_get_template_part('content', 'single', $post); ?> <?php } ?> </div><!-- end mainsection --> <?php get_footer();
<?php /* Start the Loop */ ?> <?php while (have_posts()) { the_post(); ?> <?php /* * Include the Post-Format-specific template for the content. * If you want to override this in a child theme, then include a file * called content-___.php (where ___ is the Post Format name) and that will be used instead. */ ocwscc_get_template_part('content', 'archive', $post); // get_template_part( 'template-parts/content', get_post_format() ); ?> <?php } ?> <?php the_posts_navigation(); ?> <?php } else { ?>