
test page template
By:
alchymyth on
Sep 18th, 2012 | syntax:
PHP | size: 0.75 KB | hits: 37 | expires: Never
<?php
/**
* Template Name: TEST Template
* Description: A Page Template that adds a sidebar to pages
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header(); ?>
<?php if ( is_active_sidebar( 'custom' ) ) : ?>
<div class="widget-area">
<?php dynamic_sidebar( 'custom' ); ?>
</div><!--/ .widget-area / custom -->
<?php endif; ?>
<div id="primary">
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>that should put things back into place.