Title: Sidebar.php code not working. Me, too. :-(
Last modified: August 21, 2016

---

# Sidebar.php code not working. Me, too. :-(

 *  Resolved [Robinf](https://wordpress.org/support/users/robinf/)
 * (@robinf)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/sidebarphp-code-not-working-me-too/)
 * Hello Andrico – I love what the Multiple Sidebar Plugin can do but I can’t get
   the PHP to work.
 * I have created new Sidebars in the Widgets area and I see them in the EDIT PAGES
   area. Everything is working until I make php changes in APPEARANCE > EDITOR >
   Sidebar.php I get Error Messages or my page is blank.
 * I am using WordPress Twenty Eleven Theme.
 * I tried the same things as Martin Oxby did in another post in this thread…
 *     ```
       <div id="secondary" class="widget-area" role="complementary">
       <?php global $MultipleSidebars; $MultipleSidebars -> dynamic_sidebar();
        //dynamic_sidebar(); ?></div>
       ```
   
 * And also tried …
 *     ```
       <div id="secondary" class="widget-area" role="complementary">
       <?php MS_dynamic_sidebar(); ?>
       </div>
       ```
   
 * I get an error message: Parse error: syntax error, unexpected T_ENDIF in /www/
   robinfrederick.com/web/wdp/wp-content/themes/twentyeleven/sidebar.php on line
   52
 * I followed the FAQ instructions and everything seems to be working up to this
   point. I’d love to use this plugin if I could. My site is not live yet but you
   can view it here: [http://www.robinfrederick.com/wdp/](http://www.robinfrederick.com/wdp/)
 * I can email you with access to ADMIN area if that will help. Just let me know.
 * Thank you for all your hard work!
 * Robin Frederick
 * [http://wordpress.org/plugins/multiple-sidebars/](http://wordpress.org/plugins/multiple-sidebars/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Robinf](https://wordpress.org/support/users/robinf/)
 * (@robinf)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/sidebarphp-code-not-working-me-too/#post-4023090)
 * I figured out another way to solve my problem. No need to take time to reply 
   to this post. Thanks to all who posted answers to others with a similar issue.

Viewing 1 replies (of 1 total)

The topic ‘Sidebar.php code not working. Me, too. :-(’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/multiple-sidebars_a4a4a4.svg)
 * [Multiple Sidebars](https://wordpress.org/plugins/multiple-sidebars/)
 * [Support Threads](https://wordpress.org/support/plugin/multiple-sidebars/)
 * [Active Topics](https://wordpress.org/support/plugin/multiple-sidebars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multiple-sidebars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multiple-sidebars/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [Robinf](https://wordpress.org/support/users/robinf/)
 * Last activity: [12 years, 9 months ago](https://wordpress.org/support/topic/sidebarphp-code-not-working-me-too/#post-4023090)
 * Status: resolved