<?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: Order Post by metavalue</title>
		<link>http://www.kriesi.at/support/topic/order-post-by-metavalue</link>
		<description>Support Forum - Topic: Order Post by metavalue</description>
		<language>en-US</language>
		<pubDate>Thu, 20 Jun 2013 08:44:26 +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/order-post-by-metavalue" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Order Post by metavalue"</title>
			<link>http://www.kriesi.at/support/topic/order-post-by-metavalue#post-93151</link>
			<pubDate>Thu, 24 Jan 2013 07:41:26 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">93151@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;You need to add your custom query parameters to the $avia_config['new_query'] array. Replace:&#60;/p&#62;
&#60;p&#62;replace:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(isset($avia_config[&#38;#39;new_query&#38;#39;])) { query_posts($avia_config[&#38;#39;new_query&#38;#39;]); }&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if(isset($avia_config[&#38;#39;new_query&#38;#39;])) {
    $avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;meta_key&#38;#39;] = &#38;quot;sortdate&#38;quot;;
    $avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;orderby&#38;#39;] = &#38;quot;meta_value&#38;quot;;
    $avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;order&#38;#39;] = ASC;
    query_posts($avia_config[&#38;#39;new_query&#38;#39;]);
 }&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>MaxMill on "Order Post by metavalue"</title>
			<link>http://www.kriesi.at/support/topic/order-post-by-metavalue#post-92999</link>
			<pubDate>Wed, 23 Jan 2013 12:05:53 +0000</pubDate>
			<dc:creator>MaxMill</dc:creator>
			<guid isPermaLink="false">92999@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Devin, i just added it before the loop:&#60;br /&#62;
&#60;code&#62;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
global $avia_config;&#60;br /&#62;
if(isset($avia_config['new_query'])) { query_posts($avia_config['new_query']); }&#60;br /&#62;
$loopcounter = 1;&#60;br /&#62;
query_posts($query_string . '&#38;amp;meta_key=sortdate&#38;amp;orderby=meta_value&#38;amp;order=asc' );&#60;/p&#62;
&#60;p&#62;// check if we got posts to display:&#60;br /&#62;
if (have_posts()) :&#60;/p&#62;
&#60;p&#62;&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Devin on "Order Post by metavalue"</title>
			<link>http://www.kriesi.at/support/topic/order-post-by-metavalue#post-92659</link>
			<pubDate>Mon, 21 Jan 2013 17:42:18 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">92659@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi MaxMill,&#60;/p&#62;
&#60;p&#62;Did you replace the initial query at the top of the file just below the avia config or did you just add it before the loop?&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>MaxMill on "Order Post by metavalue"</title>
			<link>http://www.kriesi.at/support/topic/order-post-by-metavalue#post-92439</link>
			<pubDate>Sat, 19 Jan 2013 21:24:18 +0000</pubDate>
			<dc:creator>MaxMill</dc:creator>
			<guid isPermaLink="false">92439@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi !&#60;/p&#62;
&#60;p&#62;I tried adding&#60;br /&#62;
&#60;code&#62;query_posts($query_string . '&#38;amp;meta_key=sortdate&#38;amp;orderby=meta_value&#38;amp;order=asc' );&#60;br /&#62;
&#60;/code&#62;&#60;br /&#62;
to index-loop.php. &#60;/p&#62;
&#60;p&#62;It sorted my Posts by sortdate fine but after that i can't open anypostings.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
