<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: One sidebar per category</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: One sidebar per category</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 11:39:43 +0000</pubDate>

<item>
<title>bechster on "One sidebar per category"</title>
<link>http://wordpress.org/support/topic/281516#post-1120017</link>
<pubDate>Mon, 29 Jun 2009 07:38:58 +0000</pubDate>
<dc:creator>bechster</dc:creator>
<guid isPermaLink="false">1120017@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I found the solution. See cross posting here:&#60;br /&#62;
&#60;a href=&#34;http://wordpress.org/support/topic/282735?replies=4&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/support/topic/282735?replies=4&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>bechster on "One sidebar per category"</title>
<link>http://wordpress.org/support/topic/281516#post-1108342</link>
<pubDate>Thu, 18 Jun 2009 12:13:50 +0000</pubDate>
<dc:creator>bechster</dc:creator>
<guid isPermaLink="false">1108342@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I often find myself in need of custom widgets or boxes of some sort for displaying related information on a per post/page basis.&#60;/p&#62;
&#60;p&#62;Specifically, I'm trying to create a sidebar per category for displaying widgets with related content for each category in my category archive.&#60;/p&#62;
&#60;p&#62;I have tried the following in functions.php but it doesn't seem to work. However, I can't figure out why it doesn't. Does anyone have any ideas?&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
  $categories = get_categories(&#38;#39;orderby=name&#38;amp;order=asc&#38;#39;);
  foreach ($categories as $category) {
    register_sidebar(array(
      &#38;#39;name&#38;#39; =&#38;gt; $category-&#38;gt;category_name,
      &#38;#39;id&#38;#39; =&#38;gt; $category-&#38;gt;category_nicename,
      &#38;#39;before_widget&#38;#39; =&#38;gt; &#38;#39;&#38;lt;div id=&#38;quot;%1$s&#38;quot; class=&#38;quot;%2$s widget&#38;quot;&#38;gt;&#38;#39;,
      &#38;#39;after_widget&#38;#39; =&#38;gt; &#38;#39;&#38;lt;/div&#38;gt;&#38;#39;,
      &#38;#39;before_title&#38;#39; =&#38;gt; &#38;#39;&#38;lt;h3 class=&#38;quot;widget-title&#38;quot;&#38;gt;&#38;#39;,
      &#38;#39;after_title&#38;#39; =&#38;gt; &#38;#39;&#38;lt;/h3&#38;gt;&#38;#39;
    ));
  }
?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Any help is much appreciated.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
