<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WPCONCEPT + wordpress resources &#187; multiple sidebars</title>
	<atom:link href="http://www.wpconcept.com/tag/multiple-sidebars/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wpconcept.com</link>
	<description></description>
	<lastBuildDate>Wed, 05 May 2010 15:26:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>create multiple sidebars in wordpress</title>
		<link>http://www.wpconcept.com/2009/11/23/how-to-create-multiple-sidebars-in-wordpress/</link>
		<comments>http://www.wpconcept.com/2009/11/23/how-to-create-multiple-sidebars-in-wordpress/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 14:07:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How to]]></category>
		<category><![CDATA[multiple sidebars]]></category>
		<category><![CDATA[wordpress sidebars]]></category>

		<guid isPermaLink="false">http://wpconcept.com/?p=33</guid>
		<description><![CDATA[When you develop a wordpress theme maybe you have to use two sidebars which to use them both at once or on different pages. I recently encountered with this problem and i thought that maybe there is someone else in the same situation. Creating multiple sidebars in wordpress is a fairly easy process. We have [...]]]></description>
			<content:encoded><![CDATA[<p>When you develop a wordpress theme maybe you have to use two sidebars which to use them both at once or on different pages. I recently encountered with this problem and i thought that maybe there is someone else in the same situation.</p>
<p>Creating multiple sidebars in wordpress is a fairly easy process. We have to work just on functions.php file. Your default functions.php file should look like this:</p>
<p><span id="more-33"></span></p>
<p><code>&lt;?php<br />
if ( function_exists('register_sidebar') )<br />
register_sidebar();<br />
?&gt;</code></p>
<p>To create two sidebars paste the following code on your functions.php file:</p>
<p><code>&lt;?php<br />
if ( function_exists('register_sidebar') )<br />
register_sidebar(array('name'=&gt;'sidebar1',<br />
'before_widget' =&gt; '',<br />
'after_widget' =&gt; '',<br />
'before_title' =&gt; '&lt;h4&gt;',<br />
'after_title' =&gt; '&lt;/h4&gt;',<br />
));<br />
register_sidebar(array('name'=&gt;'sidebar2',<br />
'before_widget' =&gt; '',<br />
'after_widget' =&gt; '',<br />
'before_title' =&gt; '&lt;h4&gt;',<br />
'after_title' =&gt; '&lt;/h4&gt;',<br />
));<br />
?&gt;</code><br />
As you can see i&#8217;ve created two sidebars called sidebar1 and sidebar2. To use these sidebars paste on your php files the following code:</p>
<p>Sidebar1 code goes like this:<br />
<code>&lt;?php if ( !function_exists('dynamic_sidebar')<br />
|| !dynamic_sidebar('sidebar1') ) : ?&gt;<br />
&lt;?php endif; ?&gt;</code></p>
<p>Sidebar2 code goes like this:<br />
<code>&lt;?php if ( !function_exists('dynamic_sidebar')<br />
|| !dynamic_sidebar('sidebar2') ) : ?&gt;<br />
&lt;?php endif; ?&gt;</code></p>
<p>Hope you enjoy this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wpconcept.com/2009/11/23/how-to-create-multiple-sidebars-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
