Title: get sidebar ()
Last modified: August 20, 2016

---

# get sidebar ()

 *  [dprogramb](https://wordpress.org/support/users/dprogramb/)
 * (@dprogramb)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-sidebar/)
 * I am using the twentyeleven theme and have created a custom page with the page
   of posts code that I found on the support forum for adding a page of selected
   posts. The code is as follows:
 * [http://wordpress.pastebin.ca/2160612](http://wordpress.pastebin.ca/2160612)
 * My problem is that I add the get_sidebar () function to the pageofposts.php and
   it places the sidebar after the posts near the bottom of the page. I’m assuming
   my posts display too wide, but I don’t know how to fix this. Help!

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-sidebar/#post-2808765)
 * Do not edit the Twenty Eleven theme. It is the default WordPress theme and having
   access to an **unedited** version of the theme is vital when dealing with a range
   of site issues. First [create a child theme for your changes](http://codex.wordpress.org/Child_Themes).
 *  Thread Starter [dprogramb](https://wordpress.org/support/users/dprogramb/)
 * (@dprogramb)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-sidebar/#post-2808782)
 * I already created a child theme.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-sidebar/#post-2808791)
 * Site url?
 *  Thread Starter [dprogramb](https://wordpress.org/support/users/dprogramb/)
 * (@dprogramb)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-sidebar/#post-2808794)
 * Testing it locally using Instant WordPress.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-sidebar/#post-2808798)
 * Why did you add get_sidebar()? It called in footer.php.
 *  Thread Starter [dprogramb](https://wordpress.org/support/users/dprogramb/)
 * (@dprogramb)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-sidebar/#post-2808804)
 * I’m trying to add a sidebar to the right of my posts. This was actually to be
   a first step as a test before adding custom sidebars to the right.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-sidebar/#post-2808833)
 * [http://www.transformationpowertools.com/wordpress/twenty-eleven-new-page-template-with-sidebar-correction](http://www.transformationpowertools.com/wordpress/twenty-eleven-new-page-template-with-sidebar-correction)
 *  Thread Starter [dprogramb](https://wordpress.org/support/users/dprogramb/)
 * (@dprogramb)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/get-sidebar/#post-2808837)
 * Thanks, alchymyth. Worked like a charm!

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

The topic ‘get sidebar ()’ is closed to new replies.

 * 8 replies
 * 3 participants
 * Last reply from: [dprogramb](https://wordpress.org/support/users/dprogramb/)
 * Last activity: [13 years, 9 months ago](https://wordpress.org/support/topic/get-sidebar/#post-2808837)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
