<?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: Solving a custom field query quandry</title>
	<atom:link href="http://idealienstudios.com/blog/wordpress/custom-field-query-quandry/feed/" rel="self" type="application/rss+xml" />
	<link>http://idealienstudios.com/blog/wordpress/custom-field-query-quandry/</link>
	<description>We will turn your dreams into reality together!</description>
	<lastBuildDate>Thu, 27 Oct 2011 01:42:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Introducing: Idealien Rideshares - Idealien Studios</title>
		<link>http://idealienstudios.com/blog/wordpress/custom-field-query-quandry/comment-page-1/#comment-1037</link>
		<dc:creator>Introducing: Idealien Rideshares - Idealien Studios</dc:creator>
		<pubDate>Thu, 27 Oct 2011 01:42:02 +0000</pubDate>
		<guid isPermaLink="false">http://idealienstudios.com/?p=678#comment-1037</guid>
		<description>[...] code, a category to store the posts and what now feels like duct-tape quality code to solve the custom field quandary it all created. WP 3.0&#8242;s custom post types and query_post meta_value parameters made the [...]</description>
		<content:encoded><![CDATA[<p>[...] code, a category to store the posts and what now feels like duct-tape quality code to solve the custom field quandary it all created. WP 3.0&#8242;s custom post types and query_post meta_value parameters made the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://idealienstudios.com/blog/wordpress/custom-field-query-quandry/comment-page-1/#comment-871</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Sat, 18 Jun 2011 01:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://idealienstudios.com/?p=678#comment-871</guid>
		<description>The functionality of this is now available in the query_posts function core to WP as of 3.1 with the meta_query parameter. Check out &lt;a href=&quot;http://wordpress.org/support/topic/using-new-meta_query-with-custom-post-types&quot; rel=&quot;nofollow&quot;&gt;http://wordpress.org/support/topic/using-new-meta_query-with-custom-post-types&lt;/a&gt; as an example. To filter categories you&#039;d use the &quot;&amp;cat=2,3,5,77,&quot; parameter.</description>
		<content:encoded><![CDATA[<p>The functionality of this is now available in the query_posts function core to WP as of 3.1 with the meta_query parameter. Check out <a href="http://wordpress.org/support/topic/using-new-meta_query-with-custom-post-types" rel="nofollow">http://wordpress.org/support/topic/using-new-meta_query-with-custom-post-types</a> as an example. To filter categories you&#8217;d use the &#8220;&#038;cat=2,3,5,77,&#8221; parameter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Nice</title>
		<link>http://idealienstudios.com/blog/wordpress/custom-field-query-quandry/comment-page-1/#comment-870</link>
		<dc:creator>Daniel Nice</dc:creator>
		<pubDate>Fri, 17 Jun 2011 21:40:31 +0000</pubDate>
		<guid isPermaLink="false">http://idealienstudios.com/?p=678#comment-870</guid>
		<description>Great post!  How would I use this in conjunction with searching a categories list?  I would like to filter on multiple custom fields as well as the default post categories.  Any help would be greatly appreciated!  

Thanks for the great function!
Daniel</description>
		<content:encoded><![CDATA[<p>Great post!  How would I use this in conjunction with searching a categories list?  I would like to filter on multiple custom fields as well as the default post categories.  Any help would be greatly appreciated!  </p>
<p>Thanks for the great function!<br />
Daniel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Query WordPress Post And Pages With Multiple Meta Values</title>
		<link>http://idealienstudios.com/blog/wordpress/custom-field-query-quandry/comment-page-1/#comment-853</link>
		<dc:creator>Query WordPress Post And Pages With Multiple Meta Values</dc:creator>
		<pubDate>Wed, 18 May 2011 22:38:03 +0000</pubDate>
		<guid isPermaLink="false">http://idealienstudios.com/?p=678#comment-853</guid>
		<description>[...] this post by Jamie Oastler a fellow designer who was kind enough to publish this amazing function: get_post_meta_multiple. I really encourage you to go ahead and read his post as he makes an excellent and clear [...]</description>
		<content:encoded><![CDATA[<p>[...] this post by Jamie Oastler a fellow designer who was kind enough to publish this amazing function: get_post_meta_multiple. I really encourage you to go ahead and read his post as he makes an excellent and clear [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://idealienstudios.com/blog/wordpress/custom-field-query-quandry/comment-page-1/#comment-365</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Fri, 03 Sep 2010 17:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://idealienstudios.com/?p=678#comment-365</guid>
		<description>Thanks Mike. You should try an &lt;a href=&quot;http://www.tizag.com/mysqlTutorial/mysqlwhere.php&quot; rel=&quot;nofollow&quot;&gt;sql wildcard %&lt;/a&gt;. You might have to do more than just modify the $metaDataList key / value you are passing in to get the type of results you expect.

Good luck!
Jamie</description>
		<content:encoded><![CDATA[<p>Thanks Mike. You should try an <a href="http://www.tizag.com/mysqlTutorial/mysqlwhere.php" rel="nofollow">sql wildcard %</a>. You might have to do more than just modify the $metaDataList key / value you are passing in to get the type of results you expect.</p>
<p>Good luck!<br />
Jamie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://idealienstudios.com/blog/wordpress/custom-field-query-quandry/comment-page-1/#comment-363</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Fri, 03 Sep 2010 04:00:53 +0000</pubDate>
		<guid isPermaLink="false">http://idealienstudios.com/?p=678#comment-363</guid>
		<description>Hi Jamie, amazing function you have there!

But I have a problem, the function compares the exact value of the custom field and returns no result if values are not the same. How can I modify it so it still finds/display the value no matter what texts it follow? I tried modifying the sql query but in vain.

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Jamie, amazing function you have there!</p>
<p>But I have a problem, the function compares the exact value of the custom field and returns no result if values are not the same. How can I modify it so it still finds/display the value no matter what texts it follow? I tried modifying the sql query but in vain.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deniz</title>
		<link>http://idealienstudios.com/blog/wordpress/custom-field-query-quandry/comment-page-1/#comment-359</link>
		<dc:creator>Deniz</dc:creator>
		<pubDate>Sat, 28 Aug 2010 10:49:56 +0000</pubDate>
		<guid isPermaLink="false">http://idealienstudios.com/?p=678#comment-359</guid>
		<description>Thanks for reply. Jamie

I just made some changes on codes.

For who needs Order by, Order as, and Pagination please follow.

http://netinial.com/blog/wordpress/wordpress-get_post_meta_multiple-pagination-and-ordering</description>
		<content:encoded><![CDATA[<p>Thanks for reply. Jamie</p>
<p>I just made some changes on codes.</p>
<p>For who needs Order by, Order as, and Pagination please follow.</p>
<p><a href="http://netinial.com/blog/wordpress/wordpress-get_post_meta_multiple-pagination-and-ordering" rel="nofollow">http://netinial.com/blog/wordpress/wordpress-get_post_meta_multiple-pagination-and-ordering</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wordpress get_post_meta_multiple, Pagination and Ordering. &#124; Deniz Porsuk</title>
		<link>http://idealienstudios.com/blog/wordpress/custom-field-query-quandry/comment-page-1/#comment-358</link>
		<dc:creator>Wordpress get_post_meta_multiple, Pagination and Ordering. &#124; Deniz Porsuk</dc:creator>
		<pubDate>Sat, 28 Aug 2010 09:54:40 +0000</pubDate>
		<guid isPermaLink="false">http://idealienstudios.com/?p=678#comment-358</guid>
		<description>[...] found get_post_meta_multiple function thanks to the [...]</description>
		<content:encoded><![CDATA[<p>[...] found get_post_meta_multiple function thanks to the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://idealienstudios.com/blog/wordpress/custom-field-query-quandry/comment-page-1/#comment-357</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Wed, 25 Aug 2010 12:53:16 +0000</pubDate>
		<guid isPermaLink="false">http://idealienstudios.com/?p=678#comment-357</guid>
		<description>All of my use cases for this code thus far have been when I needed all results returned to page. Check out these links that might help you.  Feel free to post back any solutions if you get it working:

&lt;ul&gt;
&lt;li&gt;http://codex.wordpress.org/Function_Reference/query_posts&lt;/li&gt;
&lt;li&gt;http://wordpress.org/support/topic/custom-query-sort-by-custom-fields-pagination&lt;/li&gt;
&lt;li&gt;http://stylizedweb.com/2008/08/13/query_posts-pagination-problem/&lt;/li&gt;
&lt;/ul&gt;</description>
		<content:encoded><![CDATA[<p>All of my use cases for this code thus far have been when I needed all results returned to page. Check out these links that might help you.  Feel free to post back any solutions if you get it working:</p>
<ul>
<li><a href="http://codex.wordpress.org/Function_Reference/query_posts" rel="nofollow">http://codex.wordpress.org/Function_Reference/query_posts</a></li>
<li><a href="http://wordpress.org/support/topic/custom-query-sort-by-custom-fields-pagination" rel="nofollow">http://wordpress.org/support/topic/custom-query-sort-by-custom-fields-pagination</a></li>
<li><a href="http://stylizedweb.com/2008/08/13/query_posts-pagination-problem/" rel="nofollow">http://stylizedweb.com/2008/08/13/query_posts-pagination-problem/</a></li>
</ul>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deniz</title>
		<link>http://idealienstudios.com/blog/wordpress/custom-field-query-quandry/comment-page-1/#comment-355</link>
		<dc:creator>Deniz</dc:creator>
		<pubDate>Wed, 25 Aug 2010 08:49:55 +0000</pubDate>
		<guid isPermaLink="false">http://idealienstudios.com/?p=678#comment-355</guid>
		<description>I did it with 

$resultList = get_posts(&#039;orderby=meta_value_num&amp;meta_key=total_property_size&amp;order=ASC&#039;);

thank you so much. For your perfect code.

Now I just need pagination.

I found 


	# put limit in query built above

	$ppp = intval(2);
	
	if(!$isPagination) :

		$on_page = intval(get_query_var(&#039;paged&#039;));	

		if($on_page == 0){ $on_page = 1; }		

		$offset = ($on_page-1) * $ppp;

		$querystr .= &quot; LIMIT $offset,$ppp&quot;;	

	endif;

	

	$metaResults = $wpdb-&gt;get_results($querystr, OBJECT);

	

	if($isPagination) :

		$wp_query-&gt;found_posts = count($metaResults);

		$wp_query-&gt;max_num_pages = ceil($wp_query-&gt;found_posts / $ppp);		

		$on_page = intval(get_query_var(&#039;paged&#039;));	

		if($on_page == 0){ $on_page = 1; }		

		$offset = ($on_page-1) * $ppp;

	endif;

	return $metaResults;


this code for pagination.

But could not implement it.

Could you help.</description>
		<content:encoded><![CDATA[<p>I did it with </p>
<p>$resultList = get_posts(&#8216;orderby=meta_value_num&amp;meta_key=total_property_size&amp;order=ASC&#8217;);</p>
<p>thank you so much. For your perfect code.</p>
<p>Now I just need pagination.</p>
<p>I found </p>
<p>	# put limit in query built above</p>
<p>	$ppp = intval(2);</p>
<p>	if(!$isPagination) :</p>
<p>		$on_page = intval(get_query_var(&#8216;paged&#8217;));	</p>
<p>		if($on_page == 0){ $on_page = 1; }		</p>
<p>		$offset = ($on_page-1) * $ppp;</p>
<p>		$querystr .= &#8221; LIMIT $offset,$ppp&#8221;;	</p>
<p>	endif;</p>
<p>	$metaResults = $wpdb-&gt;get_results($querystr, OBJECT);</p>
<p>	if($isPagination) :</p>
<p>		$wp_query-&gt;found_posts = count($metaResults);</p>
<p>		$wp_query-&gt;max_num_pages = ceil($wp_query-&gt;found_posts / $ppp);		</p>
<p>		$on_page = intval(get_query_var(&#8216;paged&#8217;));	</p>
<p>		if($on_page == 0){ $on_page = 1; }		</p>
<p>		$offset = ($on_page-1) * $ppp;</p>
<p>	endif;</p>
<p>	return $metaResults;</p>
<p>this code for pagination.</p>
<p>But could not implement it.</p>
<p>Could you help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

