<?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: Changing the order of the portfolio to descending</title>
		<link>http://www.kriesi.at/support/topic/changing-the-order-of-the-portfolio-to-descending</link>
		<description>Support Forum - Topic: Changing the order of the portfolio to descending</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 03:01:06 +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/changing-the-order-of-the-portfolio-to-descending" rel="self" type="application/rss+xml" />

		<item>
			<title>Ismael on "Changing the order of the portfolio to descending"</title>
			<link>http://www.kriesi.at/support/topic/changing-the-order-of-the-portfolio-to-descending#post-73152</link>
			<pubDate>Tue, 28 Aug 2012 02:49:02 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">73152@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Open includes &#38;gt; helper-template-logic.php and find this code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;//if we find categories perform complex query, otherwise simple one
		if(isset($terms[0]) &#38;amp;&#38;amp; !empty($terms[0]) &#38;amp;&#38;amp; !is_null($terms[0]) &#38;amp;&#38;amp; $terms[0] != &#38;quot;null&#38;quot;)
		{
			$avia_config[&#38;#39;new_query&#38;#39;] = array(	&#38;#39;orderby&#38;#39; 	=&#38;gt; &#38;#39;ID&#38;#39;,
												&#38;#39;order&#38;#39; 	=&#38;gt; &#38;#39;ASC&#38;#39;,
												&#38;#39;paged&#38;#39; 	=&#38;gt; get_query_var( &#38;#39;paged&#38;#39; ),
												&#38;#39;posts_per_page&#38;#39; =&#38;gt; $itemcount,
												&#38;#39;tax_query&#38;#39; =&#38;gt; array( 	array( 	&#38;#39;taxonomy&#38;#39; 	=&#38;gt; &#38;#39;portfolio_entries&#38;#39;,
																				&#38;#39;field&#38;#39; 	=&#38;gt; &#38;#39;id&#38;#39;,
																				&#38;#39;terms&#38;#39; 	=&#38;gt; $terms,
																				&#38;#39;operator&#38;#39; 	=&#38;gt; &#38;#39;IN&#38;#39;)));
		}
		else
		{
			$avia_config[&#38;#39;new_query&#38;#39;] = array(	&#38;#39;paged&#38;#39; 		 =&#38;gt; get_query_var( &#38;#39;paged&#38;#39; ),
												&#38;#39;posts_per_page&#38;#39; =&#38;gt; $itemcount,
												&#38;#39;post_type&#38;#39; 	 =&#38;gt; &#38;#39;portfolio&#38;#39;);
		}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Change 'order' 	=&#38;gt; 'ASC', to DESC. You should also add the parameter on the else statement if you don't have any category. For reference you can look at this &#60;a href=&#34;http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>SilvanaV on "Changing the order of the portfolio to descending"</title>
			<link>http://www.kriesi.at/support/topic/changing-the-order-of-the-portfolio-to-descending#post-73067</link>
			<pubDate>Mon, 27 Aug 2012 16:59:02 +0000</pubDate>
			<dc:creator>SilvanaV</dc:creator>
			<guid isPermaLink="false">73067@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Changing the order of the portfolio to descending. The topics are in ascending order and want you to be the most recent first.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
