<?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>ThemeShaper Forums Topic: Widget Area Placement....again</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Mon, 20 May 2013 16:40:02 +0000</pubDate>

<item>
<title>fwunder on "Widget Area Placement....again"</title>
<link>http://themeshaper.com/forums/topic/widget-area-placementagain#post-24639</link>
<pubDate>Wed, 04 Jan 2012 21:44:03 +0000</pubDate>
<dc:creator>fwunder</dc:creator>
<guid isPermaLink="false">24639@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Talking to myself (I do that a lot)..&#60;/p&#62;
&#60;p&#62;OK, so I simply &#34;did it the wordpress way&#34; and rather than use the add_left_sidebar function above, I simple changed to:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
'before_widget' =&#38;gt; '&#38;lt;div id=&#34;left_sidebar&#34;&#38;gt;' ,&#60;br /&#62;
'after_widget' =&#38;gt; '&#38;lt;/div&#38;gt;' ,&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;then used dynamic_sidebar('left-sidebar'); in my custom style hook function.&#60;/p&#62;
&#60;p&#62;Book it, Danno.
&#60;/p&#62;</description>
</item>
<item>
<title>fwunder on "Widget Area Placement....again"</title>
<link>http://themeshaper.com/forums/topic/widget-area-placementagain#post-24636</link>
<pubDate>Wed, 04 Jan 2012 20:45:27 +0000</pubDate>
<dc:creator>fwunder</dc:creator>
<guid isPermaLink="false">24636@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;OK, so I create a working widget area thusly:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
//register sidebar widget&#60;br /&#62;
function left_sidebar( ) {&#60;br /&#62;
register_sidebar (array (&#60;br /&#62;
'name' =&#38;gt; 'Left Sidebar',&#60;br /&#62;
'id' =&#38;gt; 'left-sidebar',&#60;br /&#62;
'description' =&#38;gt; __( 'A widget area in left sidebar', 'thematic'),&#60;br /&#62;
'before_widget' =&#38;gt; thematic_before_widget( ) ,&#60;br /&#62;
'after_widget' =&#38;gt; thematic_after_widget( ) ,&#60;br /&#62;
'before_title' =&#38;gt; thematic_before_title( ) ,&#60;br /&#62;
'after_title' =&#38;gt; thematic_after_title( ) )&#60;br /&#62;
) ;&#60;br /&#62;
}&#60;br /&#62;
add_action('init', 'left_sidebar') ;&#60;/p&#62;
&#60;p&#62;//add Left Sidebar area&#60;br /&#62;
function add_left_sidebar( ) {&#60;br /&#62;
if (is_sidebar_active('left-sidebar')) {&#60;br /&#62;
       echo thematic_before_widget_area('left-sidebar');&#60;br /&#62;
       dynamic_sidebar('left-sidebar');&#60;br /&#62;
       echo thematic_after_widget_area('left-sidebar');&#60;br /&#62;
}&#60;br /&#62;
}&#60;br /&#62;
add_action('thematic_abovecontent', 'add_left_sidebar');&#60;br /&#62;
&#60;/code&#62;&#60;code&#62;&#60;/p&#62;
&#60;p&#62;That's fine and dandy and works like a charm, however, instead of Thematic placing it in a pre-determined widget area,  I want to place it in a custom action hook - something like get_sidebar('add_left-sidebar'); &#60;/p&#62;
&#60;p&#62;Placing dynamic_sidebar('left-sidebar'); in the hook sorta works, but I don't think that's right.&#60;/p&#62;
&#60;p&#62;Thanks again and sorry to be such a pest.&#60;/code&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
