Advertisement
Guest User

postrockdb-sidebar

a guest
Jun 16th, 2012
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.82 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Template Name: Artist
  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.         <div id="primary">
  14.             <div id="content" role="main">
  15.  
  16.                 <?php while ( have_posts() ) : the_post(); ?>
  17.  
  18. <!-- here is where I grabbed content-page.php and pulled it in to reduce PHP calls -->
  19.  
  20. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  21.     <div class="entry-content">
  22.         <?php the_content(); ?>
  23.     </div><!-- .entry-content -->
  24. </article><!-- #post-<?php the_ID(); ?> -->
  25.  
  26. <!-- end of content-page.php -->
  27.                 <?php endwhile; // end of the loop. ?>
  28.  
  29.             </div><!-- #content -->
  30.         </div><!-- #primary -->
  31.  
  32. <!-- get sidebar-artist.php -->
  33. <?php get_sidebar('artist'); ?>
  34. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement