<?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: Portfolio Items sorting solution, implementation ?</title>
		<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation</link>
		<description>Support Forum - Topic: Portfolio Items sorting solution, implementation ?</description>
		<language>en-US</language>
		<pubDate>Sat, 25 May 2013 09:14:20 +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/portfolio-items-sorting-solution-implementation" rel="self" type="application/rss+xml" />

		<item>
			<title>sorenzen on "Portfolio Items sorting solution, implementation ?"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation#post-94202</link>
			<pubDate>Wed, 30 Jan 2013 19:35:43 +0000</pubDate>
			<dc:creator>sorenzen</dc:creator>
			<guid isPermaLink="false">94202@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thank You again - it works now ;D
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sorenzen on "Portfolio Items sorting solution, implementation ?"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation#post-94133</link>
			<pubDate>Wed, 30 Jan 2013 14:05:14 +0000</pubDate>
			<dc:creator>sorenzen</dc:creator>
			<guid isPermaLink="false">94133@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thank You - i will try it out ;)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ismael on "Portfolio Items sorting solution, implementation ?"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation#post-94075</link>
			<pubDate>Wed, 30 Jan 2013 02:55:26 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">94075@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I apologized for the delay. Try this instead, I tested this code on my end and it works fine.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function loop_portfolio_query( $location )
{
if ( $location == &#38;#39;loop-portfolio&#38;#39; )
{
global $avia_config;
if(isset($avia_config[&#38;#39;new_query&#38;#39;])) {
$avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;orderby&#38;#39;] = &#38;quot;rand&#38;quot;;
query_posts($avia_config[&#38;#39;new_query&#38;#39;]);
}
}
}
add_action( &#38;#39;avia_action_query_check&#38;#39; , &#38;#39;loop_portfolio_query&#38;#39;, 10, 1 );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;This will sort the portfolio on random order. Try to remove browser history and cache.&#60;/p&#62;
&#60;p&#62;Are you using a caching plugin like WP Super Cache? Please disable it.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sorenzen on "Portfolio Items sorting solution, implementation ?"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation#post-94048</link>
			<pubDate>Wed, 30 Jan 2013 01:52:57 +0000</pubDate>
			<dc:creator>sorenzen</dc:creator>
			<guid isPermaLink="false">94048@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Okay! i replaced all server content with the backup and the site is running euonia normal again. &#60;/p&#62;
&#60;p&#62;I would thou still like to solve the Portfolio Item order - would Prefer &#34;Random&#34; Sorting - else i take any other method that is not based on &#34;Date&#34;.&#60;/p&#62;
&#60;p&#62;Ismael - I would be most thankful if you could double check the suggested functions.php order alteration - and that it really does work with the Euonia theme.&#60;/p&#62;
&#60;p&#62;Thanks in advance&#60;br /&#62;
Best regards&#60;br /&#62;
Stewart.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sorenzen on "Portfolio Items sorting solution, implementation ?"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation#post-93976</link>
			<pubDate>Tue, 29 Jan 2013 19:51:59 +0000</pubDate>
			<dc:creator>sorenzen</dc:creator>
			<guid isPermaLink="false">93976@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Urgent Help needed!, my site is completely messed up now and i have been trying to solve that Portfolio Oder thing now for more than two months. I have even asked if somebody from Kriesi would help me with the site, and i would off course pay for that help.&#60;/p&#62;
&#60;p&#62;Anyway - my site is for sure not looking like the Euonia template anymore. If it is due to the functions.php changes (see above correspondence) or if it is because i have updated to the latest WP version i do not now?.&#60;/p&#62;
&#60;p&#62;Any suggestions welcome.&#60;/p&#62;
&#60;p&#62;I have a server backup, but only taken after the WP update. Else it would be back to reset - Not exactly what i had in mind to be honest.&#60;br /&#62;
Got +50 portfolio cases waiting to be worked through and taken online. I am a freelancer and this is starting to hurt just a bit to much.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sorenzen on "Portfolio Items sorting solution, implementation ?"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation#post-93910</link>
			<pubDate>Tue, 29 Jan 2013 11:05:47 +0000</pubDate>
			<dc:creator>sorenzen</dc:creator>
			<guid isPermaLink="false">93910@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hmmm tried it, but unless WP is extremely slow, it did not change anything.&#60;br /&#62;
I´m wondering.... I updated to the latest WP version, does euonia support that ?&#60;/p&#62;
&#60;p&#62;Best regards&#60;br /&#62;
Stewart ;)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ismael on "Portfolio Items sorting solution, implementation ?"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation#post-93850</link>
			<pubDate>Tue, 29 Jan 2013 03:17:21 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">93850@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi sorenzen,&#60;/p&#62;
&#60;p&#62;Try to replace:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;orderby&#38;#39;] = &#38;quot;title&#38;quot;;
$avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;order&#38;#39;] = &#38;quot;ASC&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with just:&#60;br /&#62;
&#60;code&#62;$avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;orderby&#38;#39;] = &#38;quot;rand&#38;quot;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Hope this helps. :)&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sorenzen on "Portfolio Items sorting solution, implementation ?"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation#post-93828</link>
			<pubDate>Mon, 28 Jan 2013 22:38:54 +0000</pubDate>
			<dc:creator>sorenzen</dc:creator>
			<guid isPermaLink="false">93828@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi Ismael - i tried the suggested and put in the code at the very bottom of the functions.php code&#60;/p&#62;
&#60;p&#62;Tried a few variations but the&#60;/p&#62;
&#60;p&#62;$avia_config['new_query']['orderby'] = &#34;rand&#34;;&#60;br /&#62;
$avia_config['new_query']['order'] = &#34;rand&#34;;&#60;/p&#62;
&#60;p&#62;- Can also be that WP is updating slowly, that is quite common right ?.&#60;/p&#62;
&#60;p&#62;Last functions.php i have uploaded is now set to:&#60;/p&#62;
&#60;p&#62;$avia_config['new_query']['orderby'] = &#34;title&#34;;&#60;br /&#62;
$avia_config['new_query']['order'] = &#34;rand&#34;;&#60;/p&#62;
&#60;p&#62;Anyway my site looks quite messed up right now take a look: &#60;a href=&#34;http://sorenzen.com&#34; rel=&#34;nofollow&#34;&#62;http://sorenzen.com&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ismael on "Portfolio Items sorting solution, implementation ?"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation#post-93652</link>
			<pubDate>Mon, 28 Jan 2013 01:10:02 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">93652@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Place it at the very bottom of functions.php&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function loop_portfolio_query( $location )
{
if ( $location == &#38;#39;loop-portfolio&#38;#39; )
{
global $avia_config;
if(isset($avia_config[&#38;#39;new_query&#38;#39;])) {
$avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;orderby&#38;#39;] = &#38;quot;title&#38;quot;;
$avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;order&#38;#39;] = &#38;quot;ASC&#38;quot;;
query_posts($avia_config[&#38;#39;new_query&#38;#39;]);
}
}
}
add_action( &#38;#39;avia_action_query_check&#38;#39; , &#38;#39;loop_portfolio_query&#38;#39;, 10, 1 );&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;These codes control the order of the portfolio items.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;orderby&#38;#39;] = &#38;quot;title&#38;quot;;
$avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;order&#38;#39;] = &#38;quot;ASC&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;You might want to visit this link for reference. &#60;/p&#62;
&#60;p&#62;&#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>sorenzen on "Portfolio Items sorting solution, implementation ?"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation#post-93618</link>
			<pubDate>Sun, 27 Jan 2013 20:24:01 +0000</pubDate>
			<dc:creator>sorenzen</dc:creator>
			<guid isPermaLink="false">93618@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hmmm i checked the &#34;functions.php&#34; file in Komodo Edit, can´t find that exact code line: $avia_config['new_query']['order'] = &#34;ASC&#34;;&#60;br /&#62;
(Neither in functions-eunoia.php)&#60;/p&#62;
&#60;p&#62;What am i doing wrong ?&#60;br /&#62;
:/
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sorenzen on "Portfolio Items sorting solution, implementation ?"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation#post-93615</link>
			<pubDate>Sun, 27 Jan 2013 18:43:21 +0000</pubDate>
			<dc:creator>sorenzen</dc:creator>
			<guid isPermaLink="false">93615@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks Ismael - I´m not a programmer so i´ll ask a few more details.&#60;/p&#62;
&#60;p&#62;Does the code from Matthew make the oder of the portfolio items controllable/sortable ?.&#60;/p&#62;
&#60;p&#62;In functions.php - where do it put in the code or more importantly where not to ?.&#60;/p&#62;
&#60;p&#62;Best regards&#60;br /&#62;
Stewart
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ismael on "Portfolio Items sorting solution, implementation ?"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation#post-93544</link>
			<pubDate>Sat, 26 Jan 2013 23:05:54 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">93544@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;You can place it on functions.php. :)&#60;/p&#62;
&#60;p&#62;If you want to make it random just change &#60;/p&#62;
&#60;p&#62;&#60;code&#62;$avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;order&#38;#39;] = &#38;quot;ASC&#38;quot;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;to &#60;/p&#62;
&#60;p&#62;&#60;code&#62;$avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;order&#38;#39;] = &#38;quot;rand&#38;quot;;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sorenzen on "Portfolio Items sorting solution, implementation ?"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-items-sorting-solution-implementation#post-93528</link>
			<pubDate>Sat, 26 Jan 2013 18:39:06 +0000</pubDate>
			<dc:creator>sorenzen</dc:creator>
			<guid isPermaLink="false">93528@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi - Matthew Woodard posted this solution to sort portfolio items.&#60;/p&#62;
&#60;p&#62;Can anybody explain how/where i implement this code. And does the effect of it mean that the portfolio items is sortable on the actual site, not only in the WP backend ?&#60;/p&#62;
&#60;p&#62;--------------------------------&#60;/p&#62;
&#60;p&#62;function loop_portfolio_query( $location )&#60;br /&#62;
{&#60;br /&#62;
if ( $location == 'loop-portfolio' )&#60;br /&#62;
{&#60;br /&#62;
global $avia_config;&#60;br /&#62;
if(isset($avia_config['new_query'])) {&#60;br /&#62;
$avia_config['new_query']['orderby'] = &#34;title&#34;;&#60;br /&#62;
$avia_config['new_query']['order'] = &#34;ASC&#34;;&#60;br /&#62;
query_posts($avia_config['new_query']);&#60;br /&#62;
}&#60;br /&#62;
}&#60;br /&#62;
}&#60;br /&#62;
add_action( 'avia_action_query_check' , 'loop_portfolio_query', 10, 1 );&#60;/p&#62;
&#60;p&#62;----------------------------------------&#60;/p&#62;
&#60;p&#62;Secondary - is there anyway randomize the portfolio items shown in frontpage ?&#60;/p&#62;
&#60;p&#62;sorenzen.com&#60;/p&#62;
&#60;p&#62;Best regards&#60;br /&#62;
Stewart ;)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
