<?php
/**
* Template Name: My Custom Page Template
*
* @package Total WordPress Theme
* @subpackage Templates
* @version 1.0
*/
get_header(); ?>
<div id="content-wrap" class="container clr">
<?php wpex_hook_primary_before(); ?>
<div id="primary" class="content-area clr">
<?php wpex_hook_content_before(); ?>
<div id="content" class="site-content clr" role="main">
<?php wpex_hook_content_top(); ?>
<?php while ( have_posts() ) : the_post(); ?>
// YOUR LOOP CONTENT HERE
<?php endwhile; ?>
<?php wpex_hook_content_bottom(); ?>
</div><!-- #content -->
<?php wpex_hook_content_after(); ?>
</div><!-- #primary -->
<?php wpex_hook_primary_after(); ?>
</div><!-- #content-wrap -->
<?php get_footer(); ?>
Snippets: Basic Page Template Code
All PHP snippets should be added via a child theme's functions.php file.