<header> <h3><a href="<?php the_permalink(); ?> "><?php the_title(); ?> </a></h3> <p><?php print get_the_date(); ?> </p> </header> <?php hmc_featured_img($post->ID, 'alignleft', 'thumbnail', FALSE); ?> <?php the_excerpt(); ?> <!-- <footer> <?php $categories_list = get_the_category_list(__(', ', 'hmc')); if ($categories_list) { ?> <p class="cat-links"> <?php printf(__('<span class="%1$s">Posted in:</span> %2$s', 'hmc'), '', $categories_list);
while (have_posts()) { the_post(); ?> <article> <header> <h1><?php the_title(); ?> </h1> <h2><?php print get_the_date(); ?> </h2> </header> <?php hmc_featured_img($post->ID, 'alignright'); ?> <?php the_content(); ?> <footer> <?php $categories_list = get_the_category_list(__(', ', 'hmc')); if ($categories_list) { ?> <p class="cat-links"> <?php printf(__('<span class="%1$s">Posted in:</span> %2$s', 'hmc'), '', $categories_list);
<?php the_post(); ?> <main role="main"> <div id="content"> <header> <h1><?php the_title(); ?> </h1> </header> <?php hmc_featured_img($post->ID, 'alignleft'); ?> <?php the_content(); ?> <?php edit_post_link('Edit this page', '<p class="edit-link">', '</p>'); ?> </div><!-- #content -->
<?php /* Template Name: Section Home Page */ get_header(); ?> <div id="section-image"> <?php $image = hmc_featured_img($post->ID, 'none', 'full', FALSE, FALSE); ?> <?php if ($image == NULL) { echo "<div id='section-image-placeholder'>"; echo '<h2>SECTION IMAGE GOES HERE</h2>'; echo '<p>You need to add a Featured Image to this page otherwise there\'s going to be this big space</p>'; echo '<p>The image must be 960 pixels x 280 pixels</p>'; echo '</div>'; } ?> </div> <div id="breadcrumb"> <?php get_template_part('nav', 'breadcrumb-page'); ?> </div>