Title: One Sidebar Not Working
Last modified: August 31, 2016

---

# One Sidebar Not Working

 *  [Dragonmun](https://wordpress.org/support/users/dragonmun/)
 * (@dragonmun)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/one-sidebar-not-working/)
 * I’m having a problem with a sidebar in which it is loading only a list of my 
   site’s contents (assuming this is the default action of sidebar.php). It is only
   the one sidebar and the code to call it is identical to the working sidebars,
   but it just… won’t work.
 * Here’s the call for it in the template (footer.php):
 *     ```
       <?php get_sidebar('top2')?>
       ```
   
 * Here is the code for it from functions.php:
 *     ```
       register_sidebar( array(
       		'name'          => 'top2',
       		'id'            => 'sidebar-left',
       		'description' => __( 'The damned sidebar that wont work', 'Dragonmun2016' ),
       		'before_widget' => '<div>',
       		'after_widget'  => '</div>',
       		'before_title'  => '<h2>',
       		'after_title'   => '</h2>',
       	) );
       ```
   
 * And here is the code in sidebar-left.php:
 *     ```
       <?php dynamic_sidebar( 'sidebar-left' ); ?>
       ```
   
 * Example: [http://dragonmun.com/](http://dragonmun.com/) (scroll all the way to
   the bottom).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/one-sidebar-not-working/#post-7113704)
 * this `<?php get_sidebar('top2')?>` would want to call a file **sidebar-top2.php**
 * [https://developer.wordpress.org/reference/functions/get_sidebar/](https://developer.wordpress.org/reference/functions/get_sidebar/)
 *  Thread Starter [Dragonmun](https://wordpress.org/support/users/dragonmun/)
 * (@dragonmun)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/one-sidebar-not-working/#post-7113743)
 * That was it. Thank you. Sometimes you just need a second set of eyes. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘One Sidebar Not Working’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)

 * 2 replies
 * 2 participants
 * Last reply from: [Dragonmun](https://wordpress.org/support/users/dragonmun/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/one-sidebar-not-working/#post-7113743)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
