<?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: Way to bring latest 4 portfolio items to homepage?</title>
		<link>http://www.kriesi.at/support/topic/way-to-bring-latest-4-portfolio-items-to-homepage</link>
		<description>Support Forum - Topic: Way to bring latest 4 portfolio items to homepage?</description>
		<language>en-US</language>
		<pubDate>Wed, 19 Jun 2013 00:13:48 +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/way-to-bring-latest-4-portfolio-items-to-homepage" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Way to bring latest 4 portfolio items to homepage?"</title>
			<link>http://www.kriesi.at/support/topic/way-to-bring-latest-4-portfolio-items-to-homepage#post-24294</link>
			<pubDate>Sun, 07 Aug 2011 14:01:01 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24294@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Glad that I could help you :)
&#60;/p&#62;</description>
		</item>
		<item>
			<title>OwenDevelopment on "Way to bring latest 4 portfolio items to homepage?"</title>
			<link>http://www.kriesi.at/support/topic/way-to-bring-latest-4-portfolio-items-to-homepage#post-24289</link>
			<pubDate>Sun, 07 Aug 2011 11:05:21 +0000</pubDate>
			<dc:creator>OwenDevelopment</dc:creator>
			<guid isPermaLink="false">24289@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Got it.  Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Way to bring latest 4 portfolio items to homepage?"</title>
			<link>http://www.kriesi.at/support/topic/way-to-bring-latest-4-portfolio-items-to-homepage#post-24229</link>
			<pubDate>Sat, 06 Aug 2011 06:52:24 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">24229@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
you can build a portfolio template by using the template builder (Brightbox &#38;gt; Template Builder in the admin panel). You can select a 1, 2 ,3 or 4 column setup.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>OwenDevelopment on "Way to bring latest 4 portfolio items to homepage?"</title>
			<link>http://www.kriesi.at/support/topic/way-to-bring-latest-4-portfolio-items-to-homepage#post-24197</link>
			<pubDate>Fri, 05 Aug 2011 11:01:58 +0000</pubDate>
			<dc:creator>OwenDevelopment</dc:creator>
			<guid isPermaLink="false">24197@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I'm trying to bring in 4 items from the portfolio in a row on the homepage.  So far I have done it by creating a new php page and calling it on homepage.  The code I added into this page was:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;div class=&#38;quot;divider&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;

&#38;lt;div class=&#38;quot;hometitlewrapper&#38;quot;&#38;gt;
&#38;lt;div class=&#38;quot;hometitle&#38;quot;&#38;gt;
       &#38;lt;h2&#38;gt;Recent Work&#38;lt;/h2&#38;gt;
&#38;lt;/div&#38;gt;
&#38;lt;div class=&#38;quot;hometitledesc&#38;quot;&#38;gt;
      &#38;lt;p&#38;gt;You can view more of our recent work in our &#38;lt;a href=&#38;quot;#&#38;quot;&#38;gt;Portfolio&#38;lt;/a&#38;gt; section.&#38;lt;/p&#38;gt;
&#38;lt;/div&#38;gt;
&#38;lt;/div&#38;gt;

&#38;lt;?php
global $avia_config;
if(isset($avia_config[&#38;#39;new_query&#38;#39;])) { query_posts($avia_config[&#38;#39;new_query&#38;#39;]); }

// check if we got a page to display:
if (have_posts()) :

	$loop_counter = 1;
	$extraClass = &#38;#39;first&#38;#39;;

	$grid = &#38;#39;grid4&#38;#39;;
	$image_size = &#38;#39;page&#38;#39;;
	$showcaption = true;
	$hr_class = &#38;quot;hr&#38;quot;;

	switch($avia_config[&#38;#39;portfolio_columns&#38;#39;])
	{
		case 1: $grid = &#38;#39;grid12&#38;#39;; $image_size = &#38;#39;page&#38;#39;; if(isset($avia_config[&#38;#39;remove_portfolio_text&#38;#39;])) $image_size = &#38;#39;featured&#38;#39;; break;
		case 2: $grid = &#38;#39;grid6&#38;#39;;  $image_size = &#38;#39;portfolio2&#38;#39;; break;
		case 3: $grid = &#38;#39;grid4&#38;#39;;  $image_size = &#38;#39;portfolio3&#38;#39;; break;
		case 4: $grid = &#38;#39;grid3&#38;#39;;  $image_size = &#38;#39;portfolio&#38;#39;; $showcaption = false; break;
	}

	//iterate over the posts
	while (have_posts()) : the_post();	

?&#38;gt;

	&#38;lt;?php 

	$loop_counter++;
	$extraClass = &#38;quot;&#38;quot;;
	if($loop_counter &#38;gt; $avia_config[&#38;#39;portfolio_columns&#38;#39;])
	{
		$loop_counter = 1;
		$extraClass = &#38;#39;first&#38;#39;;
		echo &#38;quot;&#38;quot;;
	}

	endwhile;
	else:
?&#38;gt;	

	&#38;lt;div class=&#38;quot;entry&#38;quot;&#38;gt;
		&#38;lt;h1 class=&#38;#39;post-title&#38;#39;&#38;gt;&#38;lt;?php _e(&#38;#39;Nothing Found&#38;#39;, &#38;#39;avia_framework&#38;#39;); ?&#38;gt;&#38;lt;/h1&#38;gt;
		&#38;lt;p&#38;gt;&#38;lt;?php _e(&#38;#39;Sorry, no posts matched your criteria&#38;#39;, &#38;#39;avia_framework&#38;#39;); ?&#38;gt;&#38;lt;/p&#38;gt;
	&#38;lt;/div&#38;gt;

&#38;lt;?php
	endif;

	if($loop_counter != 1){ echo &#38;quot;&#38;quot;; }

	if(!isset($avia_config[&#38;#39;remove_pagination&#38;#39;] ))
		echo avia_pagination();
?&#38;gt;

&#38;lt;?php 

global $avia_config;

	//set a deafult query with all portfolio items in case the user just selected to display the page tempalte instead of setting up a portfolio properly
	if(!isset($avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;tax_query&#38;#39;][0][&#38;#39;terms&#38;#39;][0]) &#124;&#124; $avia_config[&#38;#39;new_query&#38;#39;][&#38;#39;tax_query&#38;#39;][0][&#38;#39;terms&#38;#39;][0] == &#38;quot;null&#38;quot;)
	{
		if(!isset($avia_config[&#38;#39;portfolio_item_count&#38;#39;])) $avia_config[&#38;#39;portfolio_item_count&#38;#39;] = &#38;#39;4&#38;#39;;

		$avia_config[&#38;#39;new_query&#38;#39;] = array(&#38;quot;paged&#38;quot; =&#38;gt; get_query_var( &#38;#39;paged&#38;#39; ),  &#38;quot;posts_per_page&#38;quot; =&#38;gt; $avia_config[&#38;#39;portfolio_item_count&#38;#39;],  &#38;quot;post_type&#38;quot;=&#38;gt;&#38;quot;portfolio&#38;quot;);
	}
	?&#38;gt;

		&#38;lt;!-- ####### MAIN CONTAINER ####### --&#38;gt;
		&#38;lt;div class=&#38;#39;container_wrap&#38;#39; id=&#38;#39;main&#38;#39;&#38;gt;

			&#38;lt;div class=&#38;#39;container&#38;#39;&#38;gt;

				&#38;lt;div class=&#38;#39;home_portfolio_row&#38;#39;&#38;gt;

				&#38;lt;?php

				/* Run the loop to output the posts.
				* If you want to overload this in a child theme then include a file
				* called loop-portfolio.php and that will be used instead.
				*/

				get_template_part( &#38;#39;includes/loop&#38;#39;, &#38;#39;portfolio&#38;#39; );

				?&#38;gt;

				&#38;lt;!--end content--&#38;gt;
				&#38;lt;/div&#38;gt;

			&#38;lt;/div&#38;gt;&#38;lt;!--end container--&#38;gt;

	&#38;lt;/div&#38;gt;
	&#38;lt;!-- ####### END MAIN CONTAINER ####### --&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;...and while it shows up how I want, the image sizes get messed up and shortened.  Also when the page refreshes, the images load normal size, then get cut down to about 80px.  Any ideas?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
