<?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"
	>
<channel>
	<title>Comments on: How to Only Retrieve Posts With Custom Fields</title>
	<atom:link href="http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/feed/" rel="self" type="application/rss+xml" />
	<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/</link>
	<description>Weblog Tools Blogging Tools Blog</description>
	<pubDate>Fri, 04 Jul 2008 20:20:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Epic Alex</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1228288</link>
		<dc:creator>Epic Alex</dc:creator>
		<pubDate>Thu, 29 May 2008 16:23:16 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1228288</guid>
		<description>@Ronald - Thanks for the tutorial, its helping me to get to grips with something I'm trying to do, but I'm struggling a little. I'd like to display a list of posts where a certain custom field key has a certain value. So for example, show all posts where the key Number was equal to 10. 

I can't work out if I should change the mysql query, or if i should alter something later on like use an if statement to check for a key equaling a value.

Any help would be appreciated,
Alex</description>
		<content:encoded><![CDATA[<p>@Ronald - Thanks for the tutorial, its helping me to get to grips with something I&#8217;m trying to do, but I&#8217;m struggling a little. I&#8217;d like to display a list of posts where a certain custom field key has a certain value. So for example, show all posts where the key Number was equal to 10. </p>
<p>I can&#8217;t work out if I should change the mysql query, or if i should alter something later on like use an if statement to check for a key equaling a value.</p>
<p>Any help would be appreciated,<br />
Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vnvsven</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223928</link>
		<dc:creator>vnvsven</dc:creator>
		<pubDate>Wed, 23 Apr 2008 14:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223928</guid>
		<description>Is it possible to use this code also for pages with custom fields?</description>
		<content:encoded><![CDATA[<p>Is it possible to use this code also for pages with custom fields?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vnvsven</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223905</link>
		<dc:creator>vnvsven</dc:creator>
		<pubDate>Wed, 23 Apr 2008 10:32:58 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223905</guid>
		<description>Great how-to !</description>
		<content:encoded><![CDATA[<p>Great how-to !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marie-Aude</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223742</link>
		<dc:creator>Marie-Aude</dc:creator>
		<pubDate>Mon, 21 Apr 2008 10:01:41 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223742</guid>
		<description>Thanks a lot, I was just trying to look for something like that. 
The only question - I'm really far from being an expert in coding - how can you then order the fields according to a custom field ?</description>
		<content:encoded><![CDATA[<p>Thanks a lot, I was just trying to look for something like that.<br />
The only question - I&#8217;m really far from being an expert in coding - how can you then order the fields according to a custom field ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maria</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223656</link>
		<dc:creator>Maria</dc:creator>
		<pubDate>Sun, 20 Apr 2008 15:22:24 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223656</guid>
		<description>Thank you so much for this post! I was trying to figure it out myself, but that didn't work. 
@Viper: that works!</description>
		<content:encoded><![CDATA[<p>Thank you so much for this post! I was trying to figure it out myself, but that didn&#8217;t work.<br />
@Viper: that works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Une semaine avec Wordpress #11</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223634</link>
		<dc:creator>Une semaine avec Wordpress #11</dc:creator>
		<pubDate>Sun, 20 Apr 2008 09:27:12 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223634</guid>
		<description>[...] ici, on vous propose de créer une boucle Wordpress entièrement grâce aux Query Posts et de récupérer des articles via les champs personnalisés de Wordpress, les fameux &#8220;Custom [...]</description>
		<content:encoded><![CDATA[<p>[...] ici, on vous propose de créer une boucle Wordpress entièrement grâce aux Query Posts et de récupérer des articles via les champs personnalisés de Wordpress, les fameux &#8220;Custom [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Menampilkan Posting Berdasarkan Custom Field Tertentu</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223511</link>
		<dc:creator>Menampilkan Posting Berdasarkan Custom Field Tertentu</dc:creator>
		<pubDate>Fri, 18 Apr 2008 06:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223511</guid>
		<description>[...] Menampilkan Posting Berdasarkan Custom Field Tertentu  Posted by Kang Oedin April 17, 2008    Translated from How to Only Retrieve Posts With Custom Fields [...]</description>
		<content:encoded><![CDATA[<p>[...] Menampilkan Posting Berdasarkan Custom Field Tertentu  Posted by Kang Oedin April 17, 2008    Translated from How to Only Retrieve Posts With Custom Fields [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald Huereca</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223352</link>
		<dc:creator>Ronald Huereca</dc:creator>
		<pubDate>Thu, 17 Apr 2008 02:59:41 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223352</guid>
		<description>@Dan,
This way is perhaps more reusable.  More efficient? Not likely.  If anything, I'd say your technique and this one are about the same.  Both make use of one query.  The only difference is, I modify the query for posts using built-in WordPress filters.  You probably call a query directly.</description>
		<content:encoded><![CDATA[<p>@Dan,<br />
This way is perhaps more reusable.  More efficient? Not likely.  If anything, I&#8217;d say your technique and this one are about the same.  Both make use of one query.  The only difference is, I modify the query for posts using built-in WordPress filters.  You probably call a query directly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald Huereca</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223351</link>
		<dc:creator>Ronald Huereca</dc:creator>
		<pubDate>Thu, 17 Apr 2008 02:57:48 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223351</guid>
		<description>@Kang,
Please get in contact with Mark via the &lt;a href='http://weblogtoolscollection.com/contact-me/' rel="nofollow"&gt;WLTC contact form&lt;/a&gt;.  He'll be able to answer your question.</description>
		<content:encoded><![CDATA[<p>@Kang,<br />
Please get in contact with Mark via the <a href='http://weblogtoolscollection.com/contact-me/'>WLTC contact form</a>.  He&#8217;ll be able to answer your question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kang Oedin</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223334</link>
		<dc:creator>Kang Oedin</dc:creator>
		<pubDate>Thu, 17 Apr 2008 01:04:37 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223334</guid>
		<description>Hi...
You have many excellent articles, tutorials and posts about Wordpress. Can I translate them to my native language (Bahasa Indonesia) and place them on my blog leaving the original link to you???

Thank you very much...</description>
		<content:encoded><![CDATA[<p>Hi&#8230;<br />
You have many excellent articles, tutorials and posts about Wordpress. Can I translate them to my native language (Bahasa Indonesia) and place them on my blog leaving the original link to you???</p>
<p>Thank you very much&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223297</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Tue, 15 Apr 2008 21:28:35 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223297</guid>
		<description>Great post! Thanks! I'd done something similar but basically used a query object and pulled everything out that way. Is this way more efficient? On my personal site I've implemented something using your mechanism, but I'm wondering if it's worth updating my other project...this way is slightly cleaner I think. Very interested to know if it's more efficient. Thanks!</description>
		<content:encoded><![CDATA[<p>Great post! Thanks! I&#8217;d done something similar but basically used a query object and pulled everything out that way. Is this way more efficient? On my personal site I&#8217;ve implemented something using your mechanism, but I&#8217;m wondering if it&#8217;s worth updating my other project&#8230;this way is slightly cleaner I think. Very interested to know if it&#8217;s more efficient. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald Huereca</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223286</link>
		<dc:creator>Ronald Huereca</dc:creator>
		<pubDate>Tue, 15 Apr 2008 16:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223286</guid>
		<description>@Viper,
Thanks for weighing in.

@Ekro,
This technique only returns posts just with custom fields.  Paging doesn't currently work.  I'll probably write a separate post on that.</description>
		<content:encoded><![CDATA[<p>@Viper,<br />
Thanks for weighing in.</p>
<p>@Ekro,<br />
This technique only returns posts just with custom fields.  Paging doesn&#8217;t currently work.  I&#8217;ll probably write a separate post on that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gordon Brander</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223284</link>
		<dc:creator>Gordon Brander</dc:creator>
		<pubDate>Tue, 15 Apr 2008 15:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223284</guid>
		<description>Thanks for the tip! Very helpful. I was only aware of &lt;code&gt;the_meta()&lt;/code&gt; template tag which isn't nearly as flexible as &lt;code&gt;get_post_custom_values()&lt;/code&gt;.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip! Very helpful. I was only aware of <code>the_meta()</code> template tag which isn&#8217;t nearly as flexible as <code>get_post_custom_values()</code>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ekro</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223273</link>
		<dc:creator>Ekro</dc:creator>
		<pubDate>Tue, 15 Apr 2008 12:42:27 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223273</guid>
		<description>This only lists posts with defined custom fields. Is there any way to still append posts without custom fields? And does paging work with this solution? Thanks!</description>
		<content:encoded><![CDATA[<p>This only lists posts with defined custom fields. Is there any way to still append posts without custom fields? And does paging work with this solution? Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Viper007Bond</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223266</link>
		<dc:creator>Viper007Bond</dc:creator>
		<pubDate>Tue, 15 Apr 2008 09:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223266</guid>
		<description>Pages are just posts with a different post_type.

I haven't tried it, but this &lt;em&gt;_may_&lt;/em&gt; work (I've only glanced at query.php):

&lt;code&gt;$customPosts-&#62;query('showposts=5&#38;post_type=page');&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Pages are just posts with a different post_type.</p>
<p>I haven&#8217;t tried it, but this <em>_may_</em> work (I&#8217;ve only glanced at query.php):</p>
<p><code>$customPosts-&gt;query('showposts=5&amp;post_type=page');</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DFOE</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223262</link>
		<dc:creator>DFOE</dc:creator>
		<pubDate>Tue, 15 Apr 2008 08:19:07 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223262</guid>
		<description>very nice! it would also be handy to have something like this that matched key/value pairs (where x=y in custom fields).</description>
		<content:encoded><![CDATA[<p>very nice! it would also be handy to have something like this that matched key/value pairs (where x=y in custom fields).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skylog &#187; Blog Archive &#187; links for 2008-04-15</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223252</link>
		<dc:creator>Skylog &#187; Blog Archive &#187; links for 2008-04-15</dc:creator>
		<pubDate>Tue, 15 Apr 2008 06:30:35 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223252</guid>
		<description>[...] How to Only Retrieve Posts With Custom Fields (tags: wordpress) [...]</description>
		<content:encoded><![CDATA[<p>[...] How to Only Retrieve Posts With Custom Fields (tags: wordpress) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald Huereca</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223109</link>
		<dc:creator>Ronald Huereca</dc:creator>
		<pubDate>Mon, 14 Apr 2008 02:48:22 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223109</guid>
		<description>@Matt,

No, I haven't played around with pages a whole lot.  Perhaps you can try tapping into the 'posts_where' filter if you want to limit the results further.

Can anyone else help Matt with this?</description>
		<content:encoded><![CDATA[<p>@Matt,</p>
<p>No, I haven&#8217;t played around with pages a whole lot.  Perhaps you can try tapping into the &#8216;posts_where&#8217; filter if you want to limit the results further.</p>
<p>Can anyone else help Matt with this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Goff</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223105</link>
		<dc:creator>Matt Goff</dc:creator>
		<pubDate>Mon, 14 Apr 2008 02:34:46 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223105</guid>
		<description>Thanks for writing this article, it seems very close to something I would like to be able to do, except with pages.  Do you know of a relatively easy way to get this to work with pages instead of posts?</description>
		<content:encoded><![CDATA[<p>Thanks for writing this article, it seems very close to something I would like to be able to do, except with pages.  Do you know of a relatively easy way to get this to work with pages instead of posts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronald Huereca</title>
		<link>http://weblogtoolscollection.com/archives/2008/04/13/how-to-only-retrieve-posts-with-custom-fields/#comment-1223085</link>
		<dc:creator>Ronald Huereca</dc:creator>
		<pubDate>Mon, 14 Apr 2008 01:30:58 +0000</pubDate>
		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=3420#comment-1223085</guid>
		<description>@Jacob,
By all means, go for it :) - the Codex that is, not the highlander reference.</description>
		<content:encoded><![CDATA[<p>@Jacob,<br />
By all means, go for it <img src='http://weblogtoolscollection.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> - the Codex that is, not the highlander reference.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
