<?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: Own your WordPress loop with wp_query</title>
	<atom:link href="http://wpguru.co.za/advanced/the-loop/own-your-wordpress-loop-with-wp_query/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpguru.co.za/advanced/the-loop/own-your-wordpress-loop-with-wp_query/</link>
	<description>Tips &#38; Pointers on Making a Killer CMS with WordPress</description>
	<lastBuildDate>Sat, 04 Feb 2012 12:33:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: James</title>
		<link>http://wpguru.co.za/advanced/the-loop/own-your-wordpress-loop-with-wp_query/comment-page-1/#comment-1013</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 31 Jan 2011 19:24:33 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=38#comment-1013</guid>
		<description>Hi,

I eventually got this
$my_query-&gt;query(&#039;page_id=2

however if i wanted to add more pages $my_query-&gt;query(&#039;page_id=2,3,4 etc
it wont show the other pages just teh first one

please any ideas</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I eventually got this<br />
$my_query-&gt;query(&#8216;page_id=2</p>
<p>however if i wanted to add more pages $my_query-&gt;query(&#8216;page_id=2,3,4 etc<br />
it wont show the other pages just teh first one</p>
<p>please any ideas</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BaoBao Festival Website &#124; Moon Goose Designs &#124; WordPress Website Design and Development &#124; Boulder, Colorado</title>
		<link>http://wpguru.co.za/advanced/the-loop/own-your-wordpress-loop-with-wp_query/comment-page-1/#comment-1005</link>
		<dc:creator>BaoBao Festival Website &#124; Moon Goose Designs &#124; WordPress Website Design and Development &#124; Boulder, Colorado</dc:creator>
		<pubDate>Sun, 16 Jan 2011 15:18:42 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=38#comment-1005</guid>
		<description>[...] page template with a customized WordPress loop using wp_query to show both the page content as well as the posts in the Events [...]</description>
		<content:encoded><![CDATA[<p>[...] page template with a customized WordPress loop using wp_query to show both the page content as well as the posts in the Events [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://wpguru.co.za/advanced/the-loop/own-your-wordpress-loop-with-wp_query/comment-page-1/#comment-471</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Tue, 27 Apr 2010 13:14:37 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=38#comment-471</guid>
		<description>Cool - thanks for this. I&#039;ve been trying to create a another loop in the sidebar and didn&#039;t want to use the query_posts function twice. Cheers</description>
		<content:encoded><![CDATA[<p>Cool &#8211; thanks for this. I&#8217;ve been trying to create a another loop in the sidebar and didn&#8217;t want to use the query_posts function twice. Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hk</title>
		<link>http://wpguru.co.za/advanced/the-loop/own-your-wordpress-loop-with-wp_query/comment-page-1/#comment-421</link>
		<dc:creator>hk</dc:creator>
		<pubDate>Mon, 25 Jan 2010 14:51:03 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=38#comment-421</guid>
		<description>Great!
clear and usefull!
you saved my day :)
THX!</description>
		<content:encoded><![CDATA[<p>Great!<br />
clear and usefull!<br />
you saved my day <img src='http://wpguru.co.za/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
THX!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paolo</title>
		<link>http://wpguru.co.za/advanced/the-loop/own-your-wordpress-loop-with-wp_query/comment-page-1/#comment-411</link>
		<dc:creator>paolo</dc:creator>
		<pubDate>Tue, 29 Dec 2009 08:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=38#comment-411</guid>
		<description>any idea son how to use a search keyword filter with wp_query? I&#039;m using several custom wp_queries with filters for different authors in place of the loop but it breaks the search and displays everything regardless of the keyword.</description>
		<content:encoded><![CDATA[<p>any idea son how to use a search keyword filter with wp_query? I&#8217;m using several custom wp_queries with filters for different authors in place of the loop but it breaks the search and displays everything regardless of the keyword.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: danny</title>
		<link>http://wpguru.co.za/advanced/the-loop/own-your-wordpress-loop-with-wp_query/comment-page-1/#comment-381</link>
		<dc:creator>danny</dc:creator>
		<pubDate>Sat, 17 Oct 2009 23:17:19 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=38#comment-381</guid>
		<description>nvm i just figured it out...</description>
		<content:encoded><![CDATA[<p>nvm i just figured it out&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: danny</title>
		<link>http://wpguru.co.za/advanced/the-loop/own-your-wordpress-loop-with-wp_query/comment-page-1/#comment-380</link>
		<dc:creator>danny</dc:creator>
		<pubDate>Sat, 17 Oct 2009 23:11:45 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=38#comment-380</guid>
		<description>is there a way to add the category name with the post title
so if it had a category name of category 1 and post titles of post 1 and post 2 it come out as:
category 1 post 1
category 1 post 2
anyway to do that?</description>
		<content:encoded><![CDATA[<p>is there a way to add the category name with the post title<br />
so if it had a category name of category 1 and post titles of post 1 and post 2 it come out as:<br />
category 1 post 1<br />
category 1 post 2<br />
anyway to do that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kenneth</title>
		<link>http://wpguru.co.za/advanced/the-loop/own-your-wordpress-loop-with-wp_query/comment-page-1/#comment-379</link>
		<dc:creator>Kenneth</dc:creator>
		<pubDate>Thu, 15 Oct 2009 01:39:37 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=38#comment-379</guid>
		<description>Not sure why more people don</description>
		<content:encoded><![CDATA[<p>Not sure why more people don</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://wpguru.co.za/advanced/the-loop/own-your-wordpress-loop-with-wp_query/comment-page-1/#comment-378</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Mon, 12 Oct 2009 23:52:48 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=38#comment-378</guid>
		<description>well, it stripped out the php code.  email me if you haven&#039;t found out how to do what you&#039;re trying to do.</description>
		<content:encoded><![CDATA[<p>well, it stripped out the php code.  email me if you haven&#8217;t found out how to do what you&#8217;re trying to do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://wpguru.co.za/advanced/the-loop/own-your-wordpress-loop-with-wp_query/comment-page-1/#comment-377</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Mon, 12 Oct 2009 23:51:52 +0000</pubDate>
		<guid isPermaLink="false">http://wpguru.co.za/?p=38#comment-377</guid>
		<description>Hey Josh, what you may be able to do (and this may not be the best way to do it...

you could 1, do a query for just that one post you want the excerpt for

query(&#039;category_name=news&amp;showposts=1&#039;);
    while ($recentPost-&gt;have_posts()) : $recentPost-&gt;the_post(); 
?&gt;


&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;&lt;/a&gt;


 

&lt;a href=&quot;&quot;&gt;Read More&#187;&lt;/a&gt;




Then do another query for the next 3 post titles?

query(&#039;category_name=news&amp;showposts=3&#039;);
    while ($onlyTitles-&gt;have_posts()) : $onlyTitles-&gt;the_post(); 
?&gt;

You could put that in an include and put it in your header, or wherever you want it. I actually haven&#039;t tested that code, so it may not even work.  But that may give you an idea of what to look for?

Hope it helps.</description>
		<content:encoded><![CDATA[<p>Hey Josh, what you may be able to do (and this may not be the best way to do it&#8230;</p>
<p>you could 1, do a query for just that one post you want the excerpt for</p>
<p>query(&#8216;category_name=news&amp;showposts=1&#8242;);<br />
    while ($recentPost-&gt;have_posts()) : $recentPost-&gt;the_post();<br />
?&gt;</p>
<p><a href="#" rel="nofollow"></a></p>
<p>&lt;a href=&#8221;"&gt;Read More&raquo;</p>
<p>Then do another query for the next 3 post titles?</p>
<p>query(&#8216;category_name=news&amp;showposts=3&#8242;);<br />
    while ($onlyTitles-&gt;have_posts()) : $onlyTitles-&gt;the_post();<br />
?&gt;</p>
<p>You could put that in an include and put it in your header, or wherever you want it. I actually haven&#8217;t tested that code, so it may not even work.  But that may give you an idea of what to look for?</p>
<p>Hope it helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

