<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Complex WordPress Conditional Tags</title>
	<atom:link href="http://curtishenson.com/complex-wordpress-conditional-tags/feed/" rel="self" type="application/rss+xml" />
	<link>http://curtishenson.com/complex-wordpress-conditional-tags/</link>
	<description>Freelance Web Designer and Wordpress Guru</description>
	<lastBuildDate>Thu, 11 Mar 2010 07:00:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Kahil</title>
		<link>http://curtishenson.com/complex-wordpress-conditional-tags/comment-page-1/#comment-2589</link>
		<dc:creator>Kahil</dc:creator>
		<pubDate>Mon, 14 Dec 2009 21:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=281#comment-2589</guid>
		<description>I&#039;ve tried both of those things with no luck.  Maybe I&#039;m not doing it right though.  I&#039;ve been searching for almost a week and cannot find any example close to what I am wanting to do...</description>
		<content:encoded><![CDATA[<p>I&#8217;ve tried both of those things with no luck.  Maybe I&#8217;m not doing it right though.  I&#8217;ve been searching for almost a week and cannot find any example close to what I am wanting to do&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis Henson</title>
		<link>http://curtishenson.com/complex-wordpress-conditional-tags/comment-page-1/#comment-2588</link>
		<dc:creator>Curtis Henson</dc:creator>
		<pubDate>Mon, 14 Dec 2009 21:16:23 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=281#comment-2588</guid>
		<description>Kahil,

I think what you want is the &lt;a href=&quot;http://codex.wordpress.org/Template_Tags/query_posts&quot; rel=&quot;nofollow&quot;&gt;query_posts function&lt;/a&gt; with the &quot;category_name&quot; or &quot;cat&quot; option in your loops.

You might also be able to use &quot;has_tag()&quot; in place of &quot;is_tag()&quot;</description>
		<content:encoded><![CDATA[<p>Kahil,</p>
<p>I think what you want is the <a href="http://codex.wordpress.org/Template_Tags/query_posts" rel="nofollow">query_posts function</a> with the &#8220;category_name&#8221; or &#8220;cat&#8221; option in your loops.</p>
<p>You might also be able to use &#8220;has_tag()&#8221; in place of &#8220;is_tag()&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kahil</title>
		<link>http://curtishenson.com/complex-wordpress-conditional-tags/comment-page-1/#comment-2586</link>
		<dc:creator>Kahil</dc:creator>
		<pubDate>Mon, 14 Dec 2009 20:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=281#comment-2586</guid>
		<description>I have been trying to get something to work, but can&#039;t seem to get it to do so...

I have an archive page that has multiple loops.  Each loop is to show only the posts that have a specific tag within the category that I am looking in.  For example:

I am in the archive for the category of Cheese.  The first loop should show the posts in the category that have the tag of Mouse.  The second loop should show only the posts in the category that have the tag of Rat.

I want this to do this no matter which category I am in since the tags will remain the same throughout.

I tried...

if (is_category() &amp;&amp; is_tag(&#039;mouse&#039;));

and...

if (is_category() &amp;&amp; is_tag(&#039;rats&#039;));

But this isn&#039;t working... It is showing posts for the second loop in the first loop despite having it set to not show duplicate posts.

any ideas?</description>
		<content:encoded><![CDATA[<p>I have been trying to get something to work, but can&#8217;t seem to get it to do so&#8230;</p>
<p>I have an archive page that has multiple loops.  Each loop is to show only the posts that have a specific tag within the category that I am looking in.  For example:</p>
<p>I am in the archive for the category of Cheese.  The first loop should show the posts in the category that have the tag of Mouse.  The second loop should show only the posts in the category that have the tag of Rat.</p>
<p>I want this to do this no matter which category I am in since the tags will remain the same throughout.</p>
<p>I tried&#8230;</p>
<p>if (is_category() &amp;&amp; is_tag(&#8216;mouse&#8217;));</p>
<p>and&#8230;</p>
<p>if (is_category() &amp;&amp; is_tag(&#8216;rats&#8217;));</p>
<p>But this isn&#8217;t working&#8230; It is showing posts for the second loop in the first loop despite having it set to not show duplicate posts.</p>
<p>any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DRY WordPress Theme Coding - Curtis Henson</title>
		<link>http://curtishenson.com/complex-wordpress-conditional-tags/comment-page-1/#comment-2224</link>
		<dc:creator>DRY WordPress Theme Coding - Curtis Henson</dc:creator>
		<pubDate>Mon, 30 Mar 2009 23:34:20 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=281#comment-2224</guid>
		<description>[...] of your template files. I&#8217;ve written twice about conditional statements: Write Less Code, and Complex WordPress Conditional Tags. The WordPress codex page on Conditional Tags will explain everything in great [...]</description>
		<content:encoded><![CDATA[<p>[...] of your template files. I&#8217;ve written twice about conditional statements: Write Less Code, and Complex WordPress Conditional Tags. The WordPress codex page on Conditional Tags will explain everything in great [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis Henson</title>
		<link>http://curtishenson.com/complex-wordpress-conditional-tags/comment-page-1/#comment-1829</link>
		<dc:creator>Curtis Henson</dc:creator>
		<pubDate>Mon, 29 Dec 2008 18:40:46 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=281#comment-1829</guid>
		<description>Erin,
It is probably the &lt;code&gt;&amp;&amp; !&lt;/code&gt; part try &lt;code&gt;&amp;&amp; !(in_category(2)))&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Erin,<br />
It is probably the <code>&#038;&#038; !</code> part try <code>&#038;&#038; !(in_category(2)))</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erin</title>
		<link>http://curtishenson.com/complex-wordpress-conditional-tags/comment-page-1/#comment-1828</link>
		<dc:creator>Erin</dc:creator>
		<pubDate>Mon, 29 Dec 2008 18:27:40 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=281#comment-1828</guid>
		<description>Let&#039;s say I want excerpts instead of the full content on the home, archive and search pages, but not for my asides category, where I always want the full content. Why doesn&#039;t this work:
&lt;code&gt;if(is_front_page() &#124;&#124; is_archive() &#124;&#124; is_search()) &amp;&amp; !in_category(&#039;2&#039;))&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Let&#8217;s say I want excerpts instead of the full content on the home, archive and search pages, but not for my asides category, where I always want the full content. Why doesn&#8217;t this work:<br />
<code>if(is_front_page() || is_archive() || is_search()) &amp;&amp; !in_category('2'))</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis Henson</title>
		<link>http://curtishenson.com/complex-wordpress-conditional-tags/comment-page-1/#comment-1547</link>
		<dc:creator>Curtis Henson</dc:creator>
		<pubDate>Wed, 05 Nov 2008 03:55:12 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=281#comment-1547</guid>
		<description>vb,
You would use something like:
&lt;code&gt;
if ( is_page(&#039;PageName&#039;) ) {
     //category code }
elseif ( is_page(&#039;PageName&#039;) ) {
     //category code }
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>vb,<br />
You would use something like:<br />
<code><br />
if ( is_page('PageName') ) {<br />
     //category code }<br />
elseif ( is_page('PageName') ) {<br />
     //category code }<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vb</title>
		<link>http://curtishenson.com/complex-wordpress-conditional-tags/comment-page-1/#comment-1546</link>
		<dc:creator>vb</dc:creator>
		<pubDate>Wed, 05 Nov 2008 03:36:37 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=281#comment-1546</guid>
		<description>I would have pages listed across the nav bar on the home page with categories listed in the sub nav bar.

On page two I would like different categories to be displayed in the sub nav bar.

On a third page I would like different categories dislayed in the nav bar.</description>
		<content:encoded><![CDATA[<p>I would have pages listed across the nav bar on the home page with categories listed in the sub nav bar.</p>
<p>On page two I would like different categories to be displayed in the sub nav bar.</p>
<p>On a third page I would like different categories dislayed in the nav bar.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis Henson</title>
		<link>http://curtishenson.com/complex-wordpress-conditional-tags/comment-page-1/#comment-1545</link>
		<dc:creator>Curtis Henson</dc:creator>
		<pubDate>Wed, 05 Nov 2008 03:30:50 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=281#comment-1545</guid>
		<description>vb,
Do you mean while paging through posts or on individual wordpress pages(like About, Home, Contact)

It may be possible while paging through posts, but I know for sure it is possible if your are talking about individual pages.</description>
		<content:encoded><![CDATA[<p>vb,<br />
Do you mean while paging through posts or on individual wordpress pages(like About, Home, Contact)</p>
<p>It may be possible while paging through posts, but I know for sure it is possible if your are talking about individual pages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vb</title>
		<link>http://curtishenson.com/complex-wordpress-conditional-tags/comment-page-1/#comment-1544</link>
		<dc:creator>vb</dc:creator>
		<pubDate>Wed, 05 Nov 2008 03:12:18 +0000</pubDate>
		<guid isPermaLink="false">http://curtishenson.com/?p=281#comment-1544</guid>
		<description>I would like different categories to show in the nav bar on different pages.  Can this be done?  I want certain categories to show on my home page.  On page 2 I want categories that are different than the home page.  On page 3 I want categories that are different than the home page and page two.

If this can be done, can you tell me how or where I can learn this.  Maybe an example?  I seem to be stuck on this topic and need a kickstart.  Any help would be appreciated.

Thanks</description>
		<content:encoded><![CDATA[<p>I would like different categories to show in the nav bar on different pages.  Can this be done?  I want certain categories to show on my home page.  On page 2 I want categories that are different than the home page.  On page 3 I want categories that are different than the home page and page two.</p>
<p>If this can be done, can you tell me how or where I can learn this.  Maybe an example?  I seem to be stuck on this topic and need a kickstart.  Any help would be appreciated.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
