<?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 SORT ORDER - RANDOM</title>
		<link>http://www.kriesi.at/support/topic/portfolio-sort-order-random</link>
		<description>Support Forum - Topic: PORTFOLIO SORT ORDER - RANDOM</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 11:05:42 +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-sort-order-random" rel="self" type="application/rss+xml" />

		<item>
			<title>Devin on "PORTFOLIO SORT ORDER - RANDOM"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-sort-order-random#post-85879</link>
			<pubDate>Thu, 29 Nov 2012 16:31:57 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">85879@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad Ismael could help :)&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>andreibartstudio on "PORTFOLIO SORT ORDER - RANDOM"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-sort-order-random#post-85878</link>
			<pubDate>Thu, 29 Nov 2012 16:01:10 +0000</pubDate>
			<dc:creator>andreibartstudio</dc:creator>
			<guid isPermaLink="false">85878@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Done!!! Great!&#60;br /&#62;
Thank You, Ismael!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ismael on "PORTFOLIO SORT ORDER - RANDOM"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-sort-order-random#post-85804</link>
			<pubDate>Thu, 29 Nov 2012 06:01:02 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">85804@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Try to replace it with&#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;]) &#38;amp;&#38;amp; !is_home()) {
$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;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>andreibartstudio on "PORTFOLIO SORT ORDER - RANDOM"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-sort-order-random#post-85790</link>
			<pubDate>Thu, 29 Nov 2012 01:46:25 +0000</pubDate>
			<dc:creator>andreibartstudio</dc:creator>
			<guid isPermaLink="false">85790@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;br /&#62;
I find few posts on a forum about &#34;random order&#34; but it doesn't help me.&#60;/p&#62;
&#60;p&#62;I'm using this code:&#60;/p&#62;
&#60;p&#62;----------------------------------------------------------------------------------------&#60;br /&#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;rand&#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;In &#60;strong&#62;Portfolio Page&#60;/strong&#62; it's work fine!!! but it also affect the Front Page &#34;Latest Portfolio&#34; and it mixing it up!!! And I dont need it.&#60;/p&#62;
&#60;p&#62;Portfolio Page - &#60;a href=&#34;http://andreibart.com/showcase-video/love-stories/&#34; rel=&#34;nofollow&#34;&#62;http://andreibart.com/showcase-video/love-stories/&#60;/a&#62;&#60;br /&#62;
Front-Page - &#60;a href=&#34;http://andreibart.com/&#34; rel=&#34;nofollow&#34;&#62;http://andreibart.com/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Please Help me&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Andrei
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
