<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<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>Support Forum - Topic: CPT order the loop by meta date</title>
		<link>http://www.kriesi.at/support/topic/cpt-order-the-loop-by-meta-date</link>
		<description>Support Forum - Topic: CPT order the loop by meta date</description>
		<language>en-US</language>
		<pubDate>Wed, 22 May 2013 07:13:07 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.kriesi.at/support/search.php</link>
		</textInput>
		<atom:link href="http://www.kriesi.at/support/rss/topic/cpt-order-the-loop-by-meta-date" rel="self" type="application/rss+xml" />

		<item>
			<title>Mya on "CPT order the loop by meta date"</title>
			<link>http://www.kriesi.at/support/topic/cpt-order-the-loop-by-meta-date#post-58551</link>
			<pubDate>Sat, 02 Jun 2012 21:50:13 +0000</pubDate>
			<dc:creator>Mya</dc:creator>
			<guid isPermaLink="false">58551@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad it works! Let us know if you have more questions.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Mya
&#60;/p&#62;</description>
		</item>
		<item>
			<title>maratino on "CPT order the loop by meta date"</title>
			<link>http://www.kriesi.at/support/topic/cpt-order-the-loop-by-meta-date#post-58540</link>
			<pubDate>Sat, 02 Jun 2012 20:49:09 +0000</pubDate>
			<dc:creator>maratino</dc:creator>
			<guid isPermaLink="false">58540@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;this works:&#60;/p&#62;
&#60;p&#62;global $avia_config, $post_loop_count, $wp_query;&#60;/p&#62;
&#60;p&#62;$meta_sorting = array(&#60;br /&#62;
	'meta_key'	=&#38;gt; 'ecpt_datum',&#60;br /&#62;
	'orderby'	=&#38;gt; 'meta_value_num',&#60;br /&#62;
	'order' 	=&#38;gt; 'ASC'&#60;br /&#62;
);&#60;/p&#62;
&#60;p&#62;$avia_config['new_query'] = array_merge($wp_query-&#38;gt;query, $meta_sorting);
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "CPT order the loop by meta date"</title>
			<link>http://www.kriesi.at/support/topic/cpt-order-the-loop-by-meta-date#post-57535</link>
			<pubDate>Fri, 25 May 2012 11:57:49 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">57535@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;You can use orderby =&#38;gt; &#34;date&#34; if it's a standard date. Otherwise, if it's a meta value, it's not possible out of the box and requires some custom code. I think this thread: &#60;a href=&#34;http://wordpress.stackexchange.com/questions/15839/wordpress-how-to-sort-by-meta-value&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.stackexchange.com/questions/15839/wordpress-how-to-sort-by-meta-value&#60;/a&#62; is a good starting point.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>maratino on "CPT order the loop by meta date"</title>
			<link>http://www.kriesi.at/support/topic/cpt-order-the-loop-by-meta-date#post-57269</link>
			<pubDate>Wed, 23 May 2012 20:24:11 +0000</pubDate>
			<dc:creator>maratino</dc:creator>
			<guid isPermaLink="false">57269@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;i am using the easy content types plugin on a childthemed coherence site. i have an archive template with &#34;get_template_part( 'includes/loop', 'termine' );&#34;&#60;/p&#62;
&#60;p&#62;i've created a copy /wp-content/themes/coherence/includes/loop-index.php valled loop-termine.php to show my cpt and pull my meta fields. i have a custom date as timestamp.&#60;br /&#62;
is there an easy way to change the order of the loop to that date?&#60;br /&#62;
like passing an &#34;orderby&#34; =&#38;gt; &#34;ecpt_date&#34;.&#60;/p&#62;
&#60;p&#62;$avia_config['new_query']...
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
