SHARE
TWEET

test page template

alchymyth Sep 18th, 2012 57 Never
  1. <?php
  2. /**
  3. * Template Name: TEST Template
  4. * Description: A Page Template that adds a sidebar to pages
  5. *
  6. * @package WordPress
  7. * @subpackage Twenty_Eleven
  8. * @since Twenty Eleven 1.0
  9. */
  10.  
  11. get_header(); ?>
  12.  
  13. <?php if ( is_active_sidebar( 'custom' ) ) : ?>
  14. <div class="widget-area">
  15. <?php dynamic_sidebar( 'custom' ); ?>
  16. </div><!--/ .widget-area / custom -->
  17. <?php endif; ?>
  18.  
  19. <div id="primary">
  20. <div id="content" role="main">
  21.  
  22. <?php while ( have_posts() ) : the_post(); ?>
  23.  
  24. <?php get_template_part( 'content', 'page' ); ?>
  25.  
  26. <?php comments_template( '', true ); ?>
  27.  
  28. <?php endwhile; // end of the loop. ?>
  29.  
  30. </div><!-- #content -->
  31. </div><!-- #primary -->
  32.  
  33. <?php get_sidebar(); ?>
  34. <?php get_footer(); ?>that should put things back into place.
RAW Paste Data
Top