<?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>Commenti a: WordPress: ordinare una serie di post per un campo qualsiasi</title>
	<atom:link href="http://www.undolog.com/2009/03/23/wordpress-ordinare-una-serie-di-post-per-un-campo-qualsiasi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.undolog.com/2009/03/23/wordpress-ordinare-una-serie-di-post-per-un-campo-qualsiasi/</link>
	<description>Research &#38; Development  Blog</description>
	<lastBuildDate>Thu, 09 Feb 2012 11:24:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Di: Ordinare un array di array in PHP - Undolog.com - Undolog.com</title>
		<link>http://www.undolog.com/2009/03/23/wordpress-ordinare-una-serie-di-post-per-un-campo-qualsiasi/#comment-5692</link>
		<dc:creator>Ordinare un array di array in PHP - Undolog.com - Undolog.com</dc:creator>
		<pubDate>Thu, 03 Nov 2011 13:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.undolog.com/?p=1476#comment-5692</guid>
		<description>[...] funzione PHP usort&#040;&#041; vista in WordPress: ordinare una serie di post per un campo qualsiasi può essere utilizzata facilmente anche per ordinare array di array. Ad esempio se abbiamo: [...]</description>
		<content:encoded><![CDATA[<p>[...] funzione PHP usort&#040;&#041; vista in WordPress: ordinare una serie di post per un campo qualsiasi può essere utilizzata facilmente anche per ordinare array di array. Ad esempio se abbiamo: [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Di: Giovambattista Fazioli</title>
		<link>http://www.undolog.com/2009/03/23/wordpress-ordinare-una-serie-di-post-per-un-campo-qualsiasi/#comment-5691</link>
		<dc:creator>Giovambattista Fazioli</dc:creator>
		<pubDate>Thu, 03 Nov 2011 12:55:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.undolog.com/?p=1476#comment-5691</guid>
		<description>&lt;b&gt;@elia:&lt;/b&gt;: il modo migliore è quello di usare le [cci]meta_query[/cci], introdotte con la versione 3.1 di &lt;strong&gt;WordPress&lt;/strong&gt;. Trovi esempi e &lt;a href=&quot;http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters&quot; rel=&quot;nofollow&quot;&gt;documentazione qui&lt;/a&gt;. Ad esempio puoi recuperare tutti i post che hanno una meta_key prezzo uguale a 100:
[cc_php]
$args = array(&#039;meta_key&#039; =&gt; &#039;prezzo&#039;, &#039;meta_value&#039; =&gt; &#039;100&#039;);
$posts = get_posts($args);
...
[/cc_php]</description>
		<content:encoded><![CDATA[<p><b>@elia:</b>: il modo migliore è quello di usare le <code class="codecolorer text default"><span class="text">meta_query</span></code>, introdotte con la versione 3.1 di <strong>WordPress</strong>. Trovi esempi e <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters" rel="nofollow">documentazione qui</a>. Ad esempio puoi recuperare tutti i post che hanno una meta_key prezzo uguale a 100:</p>
<div class="codecolorer-container php vibrant" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$args</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'meta_key'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'prezzo'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'meta_value'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'100'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$posts</span> <span style="color: #339933;">=</span> get_posts<span style="color: #009900;">&#40;</span><span style="color: #000088;">$args</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #339933;">...</span></div></td></tr></tbody></table></div>
]]></content:encoded>
	</item>
	<item>
		<title>Di: elia</title>
		<link>http://www.undolog.com/2009/03/23/wordpress-ordinare-una-serie-di-post-per-un-campo-qualsiasi/#comment-5215</link>
		<dc:creator>elia</dc:creator>
		<pubDate>Mon, 28 Mar 2011 08:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.undolog.com/?p=1476#comment-5215</guid>
		<description>ciao,
ho letto il tuo articolo e si avvicina a quello che dovrei fare. 
io devo ordinare i post in base al valore di diversi custom field; 
per esempio ordinare per:
- prezzo
- nome
- luogo
qual è il modo migliore di procedere?
grazie</description>
		<content:encoded><![CDATA[<p>ciao,<br />
ho letto il tuo articolo e si avvicina a quello che dovrei fare.<br />
io devo ordinare i post in base al valore di diversi custom field;<br />
per esempio ordinare per:<br />
- prezzo<br />
- nome<br />
- luogo<br />
qual è il modo migliore di procedere?<br />
grazie</p>
]]></content:encoded>
	</item>
</channel>
</rss>

