Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

test page template

By: alchymyth on Sep 18th, 2012  |  syntax: PHP  |  size: 0.75 KB  |  hits: 44  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.