<?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: posts_where problem</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Fri, 24 May 2013 06:59:40 +0000</pubDate>

<item>
<title>em hr on "posts_where problem"</title>
<link>http://themeshaper.com/forums/topic/posts_where-problem#post-27731</link>
<pubDate>Sat, 15 Dec 2012 17:56:47 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">27731@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Please &#60;a href=&#34;http://themeshaper.com/forums/topic/please-read-this-before-adding-new-topics-thematic-has-moved&#34;&#62; read this&#60;/a&#62; and come to then new &#60;a href=&#34;http://thematictheme.com/forums/&#34;&#62;ThematicTheme Forums&#60;/a&#62; for support.
&#60;/p&#62;</description>
</item>
<item>
<title>iCristiano on "posts_where problem"</title>
<link>http://themeshaper.com/forums/topic/posts_where-problem#post-27668</link>
<pubDate>Tue, 06 Nov 2012 22:23:41 +0000</pubDate>
<dc:creator>iCristiano</dc:creator>
<guid isPermaLink="false">27668@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi Thematic friends,&#60;/p&#62;
&#60;p&#62;I have a taxonomy called &#34;genero&#34;. I´m trying to limit my &#34;genero&#34; archive page to just show future posts, like an event page.&#60;/p&#62;
&#60;p&#62;So, I used this code:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function filter_where( $where ) {
	if(is_tax(&#38;#39;genero&#38;#39;)){
		$where .= &#38;quot; AND post_date &#38;gt; &#38;#39;&#38;quot; . date(&#38;#39;Y-m-d&#38;#39;, strtotime(&#38;#39;0 days&#38;#39;)) . &#38;quot;&#38;#39;&#38;quot;;
	}
	return $where;
}
add_filter( &#38;#39;posts_where&#38;#39;, &#38;#39;filter_where&#38;#39; );

function reset_filter_where() {
	if(is_tax(&#38;#39;genero&#38;#39;)){
		remove_filter( &#38;#39;posts_where&#38;#39;, &#38;#39;filter_where&#38;#39; );
	}
}
add_action(&#38;#39;thematic_below_archiveloop&#38;#39;,&#38;#39;reset_filter_where&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;It works great on the genero´s archive page, but it breaks all the other looping on other pages. I don´t know what is happening. When I say it breaks I mean I get a blank page in another archive page, for exemple! On home, where I have another 2 loops, it shows the page, the header, but the loops are empty.&#60;/p&#62;
&#60;p&#62;Any help?&#60;br /&#62;
Thanks!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
