title: Wordpress: Adding Widget Sidebar for specific template
body: <p>Problem: A third sidebar I've added is not appearing on the target page.</p>
  
  <p>Description: I wanted to see if anyone can see anything I'm missing in the steps to create and display a widget sidebar in a particular template. Using the situation described below the sidebar appears on the widgets admin page but when the template renders the sidebar is the default sidebar, which suggests that the dynamic sidebar is not being found by the template. This is the second sidebar I've added. if I replace the sidebar name in the template tag with the name of the first additional template the page renders with the first customized sidebar.</p>
  
  <p>Steps to create additional widget sidebars and display them with selected templates</p>
  
  <p>1) Register the sidebar in the child theme in functions.php<br />
  2) In the registration process assign a name and ID to the new sidebar<br />
  3) Create an additional sidebar template based on the existing template. Copy the existing template and change the name of the dynamic template to match the newly registered sidebar<br />
  4) Go to the template where you want the sidebar to display and insert the name of the sidebar into the get_sidebar() template tag.<br />
  5) Go to the admin panel and drag widgets onto the new sidebar book post<br /></p>
  
  <p>Specifically this might look like:</p>
  
  <ol>
  <li><p>Register the sidebar:</p>
  
  <pre><code>if ( function_exists ('register_sidebar'))
      register_sidebar( array(
      'name'          =&gt; __('bookpost'),
      'id'            =&gt; 'sidebar-bookpost',
      'description'   =&gt; 'Sidebar for showing ad and section list on the template single-book.php',
      'before_widget' =&gt; '&lt;div id="%1$s" class="widget %2$s"&gt;',
      'after_widget'  =&gt; '&lt;/div&gt;',
      'before_title'  =&gt; '&lt;h2 class="widgettitle"&gt;',
      'after_title'   =&gt; '&lt;/h2&gt;' ));
  </code></pre></li>
  <li>Assign name bookpost and sidebar-bookpost</li>
  <li><p>Create an additional sidebar template named sidebar-bookpost.php. Edit the line</p>
  
  <p>
  So that it now reads</p>
  
  <pre><code>get_sidebar('bookpost');
  </code></pre></li>
  </ol>
  
  <p>and finally use the widgets admin page to assign widget.</p>