<?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: filter syntax question</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Fri, 24 May 2013 03:42:01 +0000</pubDate>

<item>
<title>n8w on "filter syntax question"</title>
<link>http://themeshaper.com/forums/topic/filter-syntax-question#post-7173</link>
<pubDate>Thu, 15 Oct 2009 09:55:09 +0000</pubDate>
<dc:creator>n8w</dc:creator>
<guid isPermaLink="false">7173@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Looks like this solved it&#60;/p&#62;
&#60;p&#62;// side bar&#60;br /&#62;
function my_custom_sidebar() {&#60;br /&#62;
    global $post;&#60;br /&#62;
    if (is_page('Contact')) { ?&#38;gt;&#60;br /&#62;
        &#38;lt;div id=&#34;primary&#34; class=&#34;aside main-aside&#34;&#38;gt;&#60;br /&#62;
            &#38;lt;ul class=&#34;xoxo&#34;&#38;gt;&#60;br /&#62;
                Contact sidebar&#60;/p&#62;
&#60;p&#62;        &#38;lt;/div&#38;gt;&#38;lt;!-- #primary .aside --&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;?  } elseif (is_page('About')){ ?&#38;gt;&#60;br /&#62;
    	&#38;lt;div id=&#34;primary&#34; class=&#34;aside main-aside&#34;&#38;gt;&#60;br /&#62;
            &#38;lt;ul class=&#34;xoxo&#34;&#38;gt;&#60;br /&#62;
                About sidebar&#60;/p&#62;
&#60;p&#62;        &#38;lt;/div&#38;gt;&#38;lt;!-- #primary .aside --&#38;gt;&#60;br /&#62;
	&#38;lt;?  }else{ ?&#38;gt;&#60;br /&#62;
    &#38;lt;div id=&#34;primary&#34; class=&#34;aside main-aside&#34;&#38;gt;&#60;br /&#62;
            &#38;lt;ul class=&#34;xoxo&#34;&#38;gt;&#60;br /&#62;
                &#38;lt;? dynamic_sidebar('primary-aside'); ?&#38;gt;&#60;/p&#62;
&#60;p&#62;        &#38;lt;/div&#38;gt;&#38;lt;!-- #primary .aside --&#38;gt;&#60;/p&#62;
&#60;p&#62;	&#38;lt;?}&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;add_filter ('thematic_sidebar', 'my_custom_sidebar');
&#60;/p&#62;</description>
</item>
<item>
<title>n8w on "filter syntax question"</title>
<link>http://themeshaper.com/forums/topic/filter-syntax-question#post-7166</link>
<pubDate>Thu, 15 Oct 2009 00:27:57 +0000</pubDate>
<dc:creator>n8w</dc:creator>
<guid isPermaLink="false">7166@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;anyone?
&#60;/p&#62;</description>
</item>
<item>
<title>n8w on "filter syntax question"</title>
<link>http://themeshaper.com/forums/topic/filter-syntax-question#post-7164</link>
<pubDate>Wed, 14 Oct 2009 21:10:33 +0000</pubDate>
<dc:creator>n8w</dc:creator>
<guid isPermaLink="false">7164@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I have simple syntax question&#60;/p&#62;
&#60;p&#62;If I want to add a custom filter to my child theme functions.php &#60;/p&#62;
&#60;p&#62;QUESTION: If the post is a page I want it to this .. otherwise I want it to display the standard sidebar?&#60;br /&#62;
I thought it would be something like this .. but how to I call the standard thematic sidebar?&#60;/p&#62;
&#60;p&#62; &#38;lt;?php&#60;br /&#62;
function test() {&#60;br /&#62;
    global $post;&#60;br /&#62;
    if (is_page()) { ?&#38;gt;&#60;br /&#62;
         i am a page&#60;br /&#62;
    &#38;lt;?php }else{&#60;br /&#62;
	thematic_sidebar();&#60;br /&#62;
    }&#60;br /&#62;
  }&#60;/p&#62;
&#60;p&#62;add_filter ('thematic_sidebar', 'test');&#60;/p&#62;
&#60;p&#62;?&#38;gt;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
