<?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: query_posts and is_home issues</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 21 May 2013 14:51:01 +0000</pubDate>

<item>
<title>middlesister on "query_posts and is_home issues"</title>
<link>http://themeshaper.com/forums/topic/query_posts-and-is_home-issues#post-22305</link>
<pubDate>Wed, 13 Jul 2011 19:52:17 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">22305@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;This is expected behaviour. Using query_posts will make a new database query, and changing the query will affect global values including changing the conditionals.&#60;br /&#62;
&#60;a href=&#34;http://codex.wordpress.org/Function_Reference/query_posts&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/query_posts&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You might get lucky if you put in a &#34;wp_reset_query()&#34; immediately after the loop.
&#60;/p&#62;</description>
</item>
<item>
<title>jmtmay on "query_posts and is_home issues"</title>
<link>http://themeshaper.com/forums/topic/query_posts-and-is_home-issues#post-22296</link>
<pubDate>Wed, 13 Jul 2011 03:48:53 +0000</pubDate>
<dc:creator>jmtmay</dc:creator>
<guid isPermaLink="false">22296@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Darrenc, Did you ever figure this out? I'm having the same problem. &#60;/p&#62;
&#60;p&#62;I'm using query_posts, then try to use is_home and it doesn't work. As soon as I take out the query_posts the is_home works.
&#60;/p&#62;</description>
</item>
<item>
<title>darrenc on "query_posts and is_home issues"</title>
<link>http://themeshaper.com/forums/topic/query_posts-and-is_home-issues#post-19242</link>
<pubDate>Thu, 17 Feb 2011 16:41:07 +0000</pubDate>
<dc:creator>darrenc</dc:creator>
<guid isPermaLink="false">19242@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;with respect, i don't think that's the most elegant solution. i've done it in 4 lines of code and without creating additional pages to manage. instead of making another homepage template, i could use the childtheme_override_index_loop() in function.php, but i was option for a surgically precise modification since i only need to change 2 things. &#60;/p&#62;
&#60;p&#62;i'm sure there is a way, and i thought query_posts was it... but like i said, i am getting those weird side effects and am curious why.
&#60;/p&#62;</description>
</item>
<item>
<title>lastraw on "query_posts and is_home issues"</title>
<link>http://themeshaper.com/forums/topic/query_posts-and-is_home-issues#post-19231</link>
<pubDate>Thu, 17 Feb 2011 04:28:38 +0000</pubDate>
<dc:creator>lastraw</dc:creator>
<guid isPermaLink="false">19231@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I prefer making a homepage template then adding the code you can find here:&#60;br /&#62;
&#60;a href=&#34;http://mygraphicfriend.wordpress.com/2010/01/20/wordpress-create-a-page-template-that-displays-posts-from-a-category-that-has-the-same-name-as-the-page/#comment-133&#34; rel=&#34;nofollow&#34;&#62;http://mygraphicfriend.wordpress.com/2010/01/20/wordpress-create-a-page-template-that-displays-posts-from-a-category-that-has-the-same-name-as-the-page/#comment-133&#60;/a&#62;&#60;br /&#62;
(via Pictrix)
&#60;/p&#62;</description>
</item>
<item>
<title>darrenc on "query_posts and is_home issues"</title>
<link>http://themeshaper.com/forums/topic/query_posts-and-is_home-issues#post-19229</link>
<pubDate>Thu, 17 Feb 2011 01:09:11 +0000</pubDate>
<dc:creator>darrenc</dc:creator>
<guid isPermaLink="false">19229@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;on the homepage of my site i want to simply display 3 posts from a certain category. i devised this code, put into my child functions.php:&#60;/p&#62;
&#60;pre&#62;
add_action(&#34;thematic_indexloop&#34;, &#34;font_page_loop&#34;);
function font_page_loop(){
	query_posts('posts_per_page=3&#38;#38;cat=40');
}
&#60;/pre&#62;
&#60;p&#62;however i noticed that now when i try to do other things on the page using &#34;is_home()&#34; they don't work anymore... almost like the homepage doesn't believe it is a homepage anymore.&#60;/p&#62;
&#60;p&#62;i know that i can workaround this by testing for is_category('40') instead, but my curiosity is getting the better of me:&#60;/p&#62;
&#60;p&#62;- what is actually happening here?&#60;br /&#62;
- is this the best way to be accomplishing what i want?&#60;br /&#62;
-- if not... then what is a better way?&#60;/p&#62;
&#60;p&#62;thanks for any replies.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
