{"id":392143,"date":"2006-05-22T01:45:18","date_gmt":"2006-05-22T01:45:18","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/widgetizing-theme-multiple-sidebars\/"},"modified":"2016-08-18T21:31:39","modified_gmt":"2016-08-18T21:31:39","slug":"widgetizing-theme-multiple-sidebars","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/widgetizing-theme-multiple-sidebars\/","title":{"rendered":"Widgetizing Theme: Multiple sidebars?"},"content":{"rendered":"<p>I use 3 different sidebars in my theme.  There is a home, pages and default sidebar.  I have had success with making one sidebar widget friendly&#8230; but 3? <\/p>\n<p>Php is not my strong suit.  Here is the code that I tried in function.php of the theme:<br \/>\n<code><br \/>\n&lt;code&gt;<br \/>\n&lt; ?php  <br \/>\nif ( function_exists(&#039;register_sidebar&#039;) )<br \/>\n\tregister_sidebars(1, array(&#039;name&#039;=&gt;&#039;Sidebar&#039;) );<br \/>\n\tregister_sidebars(1, array(&#039;name&#039;=&gt;&#039;Home&#039;) );<br \/>\n\tregister_sidebars(1, array(&#039;name&#039;=&gt;&#039;Pages&#039;) );<br \/>\n?&gt;<\/p>\n<p>&lt;\/code&gt;<br \/>\n<\/code><br \/>\nErrors occured when commenting on a blog post, which leads me to believe it&#8217;s not right. It appeared to work, but then the errors&#8230;<\/p>\n<p>Anyone have any ideas on how to create the right code? <\/p>\n<p>Thanks, <\/p>\n<p>Pwinkle<br \/>\np.s.<br \/>\nI&#8217;m using WP 2.02.<\/p>\n","protected":false},"template":"","class_list":["post-392143","topic","type-topic","status-closed","hentry","topic-tag-functions","topic-tag-themes","topic-tag-widgets"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/392143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/392143\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=392143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}