<?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: Custom Query Shortcode: Run a Loop inside Any Post/Page</title>
	<atom:link href="http://digwp.com/2010/01/custom-query-shortcode/feed/" rel="self" type="application/rss+xml" />
	<link>http://digwp.com/2010/01/custom-query-shortcode/</link>
	<description>Take your WordPress skills to the next level.</description>
	<lastBuildDate>Fri, 18 May 2012 18:22:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Bjarne</title>
		<link>http://digwp.com/2010/01/custom-query-shortcode/#comment-4100</link>
		<dc:creator>Bjarne</dc:creator>
		<pubDate>Sat, 03 Apr 2010 16:19:09 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1283#comment-4100</guid>
		<description>By the way...

When making a query for a particular category using &lt;code&gt;tag&lt;/code&gt; it works, but not if you use &lt;code&gt;tag_id&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>By the way&#8230;</p>
<p>When making a query for a particular category using <code>tag</code> it works, but not if you use <code>tag_id</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjarne</title>
		<link>http://digwp.com/2010/01/custom-query-shortcode/#comment-4099</link>
		<dc:creator>Bjarne</dc:creator>
		<pubDate>Sat, 03 Apr 2010 16:11:22 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1283#comment-4099</guid>
		<description>Hi there, 

Thanks for this super nice shortcode. I wonder why something like this is not part of WP out of the box.  

I have put the code in my functions.php and inserted a shortcode on a page. I am however having some problems excluding certain tags from the query as well as putting my custom field values in the output. 

For excluding tags I have tried using &lt;code&gt;tag__not_in&lt;/code&gt; in the shortcode without success. Is this possible? If so, how would it look like in the shortcode?

To output my custom field values I have tried adding &lt;code&gt;$temp_erf = get_post_meta($post_ID, &#039;erf&#039;, true);&lt;/code&gt; in the loop and then a &lt;code&gt;$temp_erf&lt;/code&gt; in the output. 

Am I missing something obvious here or is this a limit to the shortcode?</description>
		<content:encoded><![CDATA[<p>Hi there, </p>
<p>Thanks for this super nice shortcode. I wonder why something like this is not part of WP out of the box.  </p>
<p>I have put the code in my functions.php and inserted a shortcode on a page. I am however having some problems excluding certain tags from the query as well as putting my custom field values in the output. </p>
<p>For excluding tags I have tried using <code>tag__not_in</code> in the shortcode without success. Is this possible? If so, how would it look like in the shortcode?</p>
<p>To output my custom field values I have tried adding <code>$temp_erf = get_post_meta($post_ID, 'erf', true);</code> in the loop and then a <code>$temp_erf</code> in the output. </p>
<p>Am I missing something obvious here or is this a limit to the shortcode?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WPGPL Team</title>
		<link>http://digwp.com/2010/01/custom-query-shortcode/#comment-3443</link>
		<dc:creator>WPGPL Team</dc:creator>
		<pubDate>Fri, 19 Feb 2010 03:44:56 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1283#comment-3443</guid>
		<description>Interesting method, for some writer that didn&#039;t understand PHP this one really useful</description>
		<content:encoded><![CDATA[<p>Interesting method, for some writer that didn&#8217;t understand PHP this one really useful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chuck scott</title>
		<link>http://digwp.com/2010/01/custom-query-shortcode/#comment-3233</link>
		<dc:creator>chuck scott</dc:creator>
		<pubDate>Thu, 28 Jan 2010 16:24:46 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1283#comment-3233</guid>
		<description>very interesting concept ... do you know if this can also be done with the shortcode for gallery ..?? ... i&#039;d love to loop thru the gallery thumbnails and insert hover-over links/tooltips with the gallery&#039;s medium sized image thus not sure if your loop example would work in such a situation or if plugin path is better direction ..??..</description>
		<content:encoded><![CDATA[<p>very interesting concept &#8230; do you know if this can also be done with the shortcode for gallery ..?? &#8230; i&#8217;d love to loop thru the gallery thumbnails and insert hover-over links/tooltips with the gallery&#8217;s medium sized image thus not sure if your loop example would work in such a situation or if plugin path is better direction ..??..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Quasel</title>
		<link>http://digwp.com/2010/01/custom-query-shortcode/#comment-3193</link>
		<dc:creator>Quasel</dc:creator>
		<pubDate>Sun, 24 Jan 2010 18:18:28 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1283#comment-3193</guid>
		<description>Here is a solution quite similar to yours but without the need auf the regex ... and its easier to modify the output ... might be intresting for you - i would remove the category part over there but ...

http://www.wprecipes.com/wordpress-shortcode-display-the-loop

greeting</description>
		<content:encoded><![CDATA[<p>Here is a solution quite similar to yours but without the need auf the regex &#8230; and its easier to modify the output &#8230; might be intresting for you &#8211; i would remove the category part over there but &#8230;</p>
<p><a href="http://www.wprecipes.com/wordpress-shortcode-display-the-loop" rel="nofollow">http://www.wprecipes.com/wordpress-shortcode-display-the-loop</a></p>
<p>greeting</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Thackeray</title>
		<link>http://digwp.com/2010/01/custom-query-shortcode/#comment-3191</link>
		<dc:creator>Dave Thackeray</dc:creator>
		<pubDate>Sun, 24 Jan 2010 15:24:49 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1283#comment-3191</guid>
		<description>Ok something&#039;s been nagging at me a while and the only way out was to build a page template with query_posts () - but I reckon you can offer a better solution with this example.

What I need to do is have a link on my main navbar to the latest post in a particular category. A child link on the navbar needs to link to all posts in that category EXCEPT the latest post.

Could I use your code to make this happen for me?</description>
		<content:encoded><![CDATA[<p>Ok something&#8217;s been nagging at me a while and the only way out was to build a page template with query_posts () &#8211; but I reckon you can offer a better solution with this example.</p>
<p>What I need to do is have a link on my main navbar to the latest post in a particular category. A child link on the navbar needs to link to all posts in that category EXCEPT the latest post.</p>
<p>Could I use your code to make this happen for me?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OldGuy</title>
		<link>http://digwp.com/2010/01/custom-query-shortcode/#comment-3184</link>
		<dc:creator>OldGuy</dc:creator>
		<pubDate>Thu, 21 Jan 2010 19:49:17 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1283#comment-3184</guid>
		<description>You mentioned that you thought this should probably be a plugin instead of a function. I&#039;d love to see an article on creating a plugin. :)</description>
		<content:encoded><![CDATA[<p>You mentioned that you thought this should probably be a plugin instead of a function. I&#8217;d love to see an article on creating a plugin. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt mcinvale</title>
		<link>http://digwp.com/2010/01/custom-query-shortcode/#comment-3182</link>
		<dc:creator>matt mcinvale</dc:creator>
		<pubDate>Thu, 21 Jan 2010 18:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1283#comment-3182</guid>
		<description>add another parameter to your function &amp; shortcode.

[loop query=&quot;foobar&quot; id=&quot;something]

:)</description>
		<content:encoded><![CDATA[<p>add another parameter to your function &amp; shortcode.</p>
<p>[loop query="foobar" id="something]</p>
<p>:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Coyier</title>
		<link>http://digwp.com/2010/01/custom-query-shortcode/#comment-3181</link>
		<dc:creator>Chris Coyier</dc:creator>
		<pubDate>Thu, 21 Jan 2010 18:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1283#comment-3181</guid>
		<description>Good point... although in my case I wanted to add ID values to the different unordered lists so I wanted those outside.

I guess the code above is more generically useful, but in real use should be customized to specific needs. Perhaps adding a parameter or two for specifying what kind of output you want...</description>
		<content:encoded><![CDATA[<p>Good point&#8230; although in my case I wanted to add ID values to the different unordered lists so I wanted those outside.</p>
<p>I guess the code above is more generically useful, but in real use should be customized to specific needs. Perhaps adding a parameter or two for specifying what kind of output you want&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matt mcinvale</title>
		<link>http://digwp.com/2010/01/custom-query-shortcode/#comment-3180</link>
		<dc:creator>matt mcinvale</dc:creator>
		<pubDate>Thu, 21 Jan 2010 18:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=1283#comment-3180</guid>
		<description>personally, i&#039;d have the function output the open and closing list tags as well. if it doesn&#039;t return anything you&#039;ll have unnecessary code in your page (ewwww!).

i used something similar on &lt;a href=&quot;http://jfeeinsurance.com/&quot; rel=&quot;nofollow&quot;&gt;a client&#039;s site&lt;/a&gt;. the 3 boxes on the page randomly pulls child pages from products.</description>
		<content:encoded><![CDATA[<p>personally, i&#8217;d have the function output the open and closing list tags as well. if it doesn&#8217;t return anything you&#8217;ll have unnecessary code in your page (ewwww!).</p>
<p>i used something similar on <a href="http://jfeeinsurance.com/" rel="nofollow">a client&#8217;s site</a>. the 3 boxes on the page randomly pulls child pages from products.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

