<?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 - User Favorites: mehranazma</title>
		<link><a href='http://www.kriesi.at/support/profile/mehranazma'>mehranazma</a></link>
		<description>Support Forum - User Favorites: mehranazma</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 23:19:58 +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/profile/" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "Portfolio widget problem on homepage"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-widget-problem-on-homepage#post-17413</link>
			<pubDate>Wed, 20 Apr 2011 06:57:02 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">17413@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I posted the update in the first post. The original code used:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$additional_loop = new WP_Query(&#38;quot;cat=&#38;quot;.$cat.&#38;quot;&#38;amp;posts_per_page=&#38;quot;.$count);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;as query -- the code I posted afterwards is the solution to the category query problem. However it's possible that CleanCut needs a different query.&#60;/p&#62;
&#60;p&#62;You can send me the mail to: &#60;a href=&#34;mailto:kriesi2000-dude@yahoo.com&#34;&#62;kriesi2000-dude@yahoo.com&#60;/a&#62; and I'll make you a quote.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m azma on "Portfolio widget problem on homepage"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-widget-problem-on-homepage#post-17412</link>
			<pubDate>Wed, 20 Apr 2011 06:49:56 +0000</pubDate>
			<dc:creator>m azma</dc:creator>
			<guid isPermaLink="false">17412@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;First, thank you very much for responding Dude. I appreciate your time and input. I completely understand this is beyond the scope of the support forum, and portfolio widgets aren't included with the theme. However, would you mind revisiting your original thread regarding this same question someone else had posted?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts&#34; rel=&#34;nofollow&#34;&#62;http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;That is where you first offered a portfolio widget as a modification. Your final response, you'd said you'd figured out the problem with the category filter not working - but the solution wasn't listed. I'm wondering if you still recall what the solution was?&#60;/p&#62;
&#60;p&#62;Also, can I email you directly to discuss the freelance assistance on this?&#60;/p&#62;
&#60;p&#62;Many thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Portfolio widget problem on homepage"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-widget-problem-on-homepage#post-17396</link>
			<pubDate>Wed, 20 Apr 2011 05:42:18 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">17396@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
I can't find an obvious reason why it doesn't work - I'd need more time to investigate it. You can try to adjust the portfolio query as James suggested above or you can try to duplicate the query code for every column and hardcode the categories. However as far as I know CleanCut doesn't come with a portfolio widget - the query code is a customization and we can only support customizations if they're not time intensive. &#60;/p&#62;
&#60;p&#62;I'm sorry but I think this is beyond the scope of this support forum. I can only offer my help on a freelancer basis....
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m azma on "Portfolio widget problem on homepage"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-widget-problem-on-homepage#post-17370</link>
			<pubDate>Tue, 19 Apr 2011 18:01:56 +0000</pubDate>
			<dc:creator>m azma</dc:creator>
			<guid isPermaLink="false">17370@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Please. I realize I am probably being buried by support in hopes of disappearing. I paid for this theme, and I've asked one support question and was provided a solution that didn't match my inquiry or desired intent. I don't think I'm being out of line by asking for clarification. I've even tried to help others needing support. Again, Dude alluded to the fact that there was a solution for this in another poster's thread - but the solution itself wasn't listed there. If there is no solution, you can simply say that and I'll quit checking back here every hour in hopes that someone will answer me.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m azma on "Portfolio widget problem on homepage"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-widget-problem-on-homepage#post-16847</link>
			<pubDate>Tue, 12 Apr 2011 20:44:25 +0000</pubDate>
			<dc:creator>m azma</dc:creator>
			<guid isPermaLink="false">16847@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;This would be the sidebar widget code that doesn't seem to be filtering by category correctly:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
/* Add our function to the widgets_init hook. */
add_action( &#38;#39;widgets_init&#38;#39;, &#38;#39;kriesi_sidebar_portfolio_widget&#38;#39; );

/* Function that registers our widget. */
function kriesi_sidebar_portfolio_widget() {
	global $kriesiaddwidget;
	$kriesiaddwidget = 0;
	register_widget( &#38;#39;Kriesi_sidebar_portfolio_Widget&#38;#39; );
}

class Kriesi_sidebar_portfolio_Widget extends WP_Widget {
	function Kriesi_sidebar_portfolio_Widget()
	{
		$widget_ops = array(&#38;#39;classname&#38;#39; =&#38;gt; &#38;#39;community_news&#38;#39;, &#38;#39;description&#38;#39; =&#38;gt; &#38;#39;A Sidebar widget to display posts in your sidebar&#38;#39; );

		$this-&#38;gt;WP_Widget( &#38;#39;community_news&#38;#39;, THEMENAME.&#38;#39; Sidebar Portfolio&#38;#39;, $widget_ops );
	}

	function widget($args, $instance)
	{
		global $k_option;
		extract($args, EXTR_SKIP);
		echo $before_widget;

		$title = empty($instance[&#38;#39;title&#38;#39;]) ? &#38;#39;&#38;#39; : apply_filters(&#38;#39;widget_title&#38;#39;, $instance[&#38;#39;title&#38;#39;]);
		$count = empty($instance[&#38;#39;count&#38;#39;]) ? &#38;#39;&#38;#39; : apply_filters(&#38;#39;widget_entry_title&#38;#39;, $instance[&#38;#39;count&#38;#39;]);
		$cat = empty($instance[&#38;#39;cat&#38;#39;]) ? &#38;#39;&#38;#39; : apply_filters(&#38;#39;widget_comments_title&#38;#39;, $instance[&#38;#39;cat&#38;#39;]);

		if ( !empty( $title ) ) { echo $before_title . $title . $after_title; };

		if (!empty($cat))

				{
		        $array_cat = explode(&#38;quot;,&#38;quot;, $cat);
				$myquery = array(
							 &#38;#39;posts_per_page&#38;#39;=&#38;gt; $count,
							 &#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; $array_cat ,
											    &#38;#39;operator&#38;#39; =&#38;gt; &#38;#39;IN&#38;#39;
											      )
										       )
						);

                }else{

								$myquery = &#38;#39;post_type=portfolio&#38;amp;taxonomy=portfolio_entries&#38;amp;posts_per_page=&#38;#39;.$count;

				}

$additional_loop = new WP_Query($myquery);
		if($additional_loop-&#38;gt;have_posts()) :
		while ($additional_loop-&#38;gt;have_posts()) : $additional_loop-&#38;gt;the_post();

		$small_prev = kriesi_post_thumb($post-&#38;gt;ID, array(&#38;#39;size&#38;#39;=&#38;gt; array(&#38;#39;S&#38;#39;),
															&#38;#39;display_link&#38;#39; =&#38;gt; array(&#38;#39;permalink&#38;#39;),
															&#38;#39;wh&#38;#39; =&#38;gt; $k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][&#38;#39;S&#38;#39;],
															&#38;#39;img_attr&#38;#39; =&#38;gt; array(&#38;#39;class&#38;#39;=&#38;gt;&#38;#39;rounded alignleft&#38;#39;),
															&#38;#39;link_attr&#38;#39; =&#38;gt; array(&#38;#39;class&#38;#39;=&#38;gt;&#38;#39;alignleft preloading_background&#38;#39;)
															));
		?&#38;gt;

			&#38;lt;div class=&#38;quot;entry box_entry&#38;quot;&#38;gt;
			&#38;lt;h4&#38;gt;
			&#38;lt;a&#38;gt;&#38;quot; rel=&#38;quot;bookmark&#38;quot; title=&#38;quot;&#38;lt;?php _e(&#38;#39;Permanent Link:&#38;#39;,&#38;#39;cleancut&#38;#39;)?&#38;gt; &#38;lt;?php the_title(); ?&#38;gt;&#38;quot;&#38;gt;
			&#38;lt;?php the_title(); ?&#38;gt;
			&#38;lt;/a&#38;gt;
			&#38;lt;/h4&#38;gt;

			&#38;lt;?php
			if($small_prev) echo $small_prev;
			the_excerpt(&#38;#39;Read more&#38;#39;); ?&#38;gt;
			&#38;lt;/div&#38;gt;

		&#38;lt;?php
		endwhile;
		endif;

		echo $after_widget;

	}

	function update($new_instance, $old_instance)
	{
		$instance = $old_instance;
		$instance[&#38;#39;title&#38;#39;] = strip_tags($new_instance[&#38;#39;title&#38;#39;]);
		$instance[&#38;#39;count&#38;#39;] = strip_tags($new_instance[&#38;#39;count&#38;#39;]);
		$instance[&#38;#39;cat&#38;#39;] = strip_tags($new_instance[&#38;#39;cat&#38;#39;]);
		return $instance;
	}

	function form($instance)
	{
		$instance = wp_parse_args( (array) $instance, array( &#38;#39;title&#38;#39; =&#38;gt; &#38;#39;&#38;#39;, &#38;#39;count&#38;#39; =&#38;gt; &#38;#39;&#38;#39;, &#38;#39;cat&#38;#39; =&#38;gt; &#38;#39;&#38;#39; ) );
		$title = strip_tags($instance[&#38;#39;title&#38;#39;]);
		$count = strip_tags($instance[&#38;#39;count&#38;#39;]);
		$cat = strip_tags($instance[&#38;#39;cat&#38;#39;]);
?&#38;gt;
		&#38;lt;p&#38;gt;&#38;lt;label for=&#38;quot;&#38;lt;?php echo $this-&#38;gt;get_field_id(&#38;#39;title&#38;#39;); ?&#38;gt;&#38;quot;&#38;gt;Title:
		&#38;lt;input class=&#38;quot;widefat&#38;quot; id=&#38;quot;&#38;lt;?php echo $this-&#38;gt;get_field_id(&#38;#39;title&#38;#39;); ?&#38;gt;&#38;quot; name=&#38;quot;&#38;lt;?php echo $this-&#38;gt;get_field_name(&#38;#39;title&#38;#39;); ?&#38;gt;&#38;quot; type=&#38;quot;text&#38;quot; value=&#38;quot;&#38;lt;?php echo attribute_escape($title); ?&#38;gt;&#38;quot; /&#38;gt;&#38;lt;/label&#38;gt;&#38;lt;/p&#38;gt;

		&#38;lt;p&#38;gt;&#38;lt;label for=&#38;quot;&#38;lt;?php echo $this-&#38;gt;get_field_id(&#38;#39;count&#38;#39;); ?&#38;gt;&#38;quot;&#38;gt;How many entries do you want to display:
		&#38;lt;input class=&#38;quot;widefat&#38;quot; id=&#38;quot;&#38;lt;?php echo $this-&#38;gt;get_field_id(&#38;#39;count&#38;#39;); ?&#38;gt;&#38;quot; name=&#38;quot;&#38;lt;?php echo $this-&#38;gt;get_field_name(&#38;#39;count&#38;#39;); ?&#38;gt;&#38;quot; type=&#38;quot;text&#38;quot; value=&#38;quot;&#38;lt;?php echo attribute_escape($count); ?&#38;gt;&#38;quot; /&#38;gt;&#38;lt;/label&#38;gt;&#38;lt;/p&#38;gt;

		&#38;lt;p&#38;gt;&#38;lt;label for=&#38;quot;&#38;lt;?php echo $this-&#38;gt;get_field_id(&#38;#39;cat&#38;#39;); ?&#38;gt;&#38;quot;&#38;gt;Enter the ids of the categories you want to display, separate them by comma:
		&#38;lt;input class=&#38;quot;widefat&#38;quot; id=&#38;quot;&#38;lt;?php echo $this-&#38;gt;get_field_id(&#38;#39;cat&#38;#39;); ?&#38;gt;&#38;quot; name=&#38;quot;&#38;lt;?php echo $this-&#38;gt;get_field_name(&#38;#39;cat&#38;#39;); ?&#38;gt;&#38;quot; type=&#38;quot;text&#38;quot; value=&#38;quot;&#38;lt;?php echo attribute_escape($cat); ?&#38;gt;&#38;quot; /&#38;gt;&#38;lt;/label&#38;gt;&#38;lt;/p&#38;gt;

&#38;lt;?php
	}
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>m azma on "Portfolio widget problem on homepage"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-widget-problem-on-homepage#post-16846</link>
			<pubDate>Tue, 12 Apr 2011 20:29:29 +0000</pubDate>
			<dc:creator>m azma</dc:creator>
			<guid isPermaLink="false">16846@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;bump - still would really love to hear a solution for why the category filter doesn't work on sidebar_portfolio widget.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m azma on "Portfolio widget problem on homepage"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-widget-problem-on-homepage#post-15899</link>
			<pubDate>Tue, 29 Mar 2011 17:54:36 +0000</pubDate>
			<dc:creator>m azma</dc:creator>
			<guid isPermaLink="false">15899@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi James,&#60;/p&#62;
&#60;p&#62;Thanks for the follow-up, I have went ahead and put your suggestions into effect and the result is I'm now getting a duplication of the testimonial area that is filling up with my portfolio items. This isn't the solution I was hoping for, but I appreciate the effort. I was really hoping to maintain the same appearance and functionality of the widgetized posts. In my original edits, it was querying and formatting correctly, but the category filter just wasn't working properly - which is what I was really hoping to get help on.&#60;/p&#62;
&#60;p&#62;I've posted a pic of what occured with your suggested solution, which is viewable here (&#60;a href=&#34;http://www.stations-studio.com/_ForSupport/SuggestedCode_Implemented.png&#34; rel=&#34;nofollow&#34;&#62;http://www.stations-studio.com/_ForSupport/SuggestedCode_Implemented.png&#60;/a&#62;) to ensure you I've attempted to incorporate your suggestions and appreciate your effort. Unfortunately, it's just not what I was really asking for in my original post of this thread.&#60;/p&#62;
&#60;p&#62;I am mainly trying to understand why the category filter wasn't working for the meta boxes and remedy that.&#60;/p&#62;
&#60;p&#62;After spending quite a bit of time searching I found the same problem was posed here by someone else:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts&#34; rel=&#34;nofollow&#34;&#62;http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;'Dude' had closed the topic in his last response there, saying he'd posted a modified query code, but I didn't see the actual code anywhere in that post - which is why I re-posted my similar question.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>James Morrison on "Portfolio widget problem on homepage"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-widget-problem-on-homepage#post-15869</link>
			<pubDate>Tue, 29 Mar 2011 14:20:40 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">15869@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;The code I provided was designed to get you started on making your modification and I suggested using a custom bit of code rather than the default meta boxes.&#60;/p&#62;
&#60;p&#62;This would require a working knowledge of WP and there is comprehensive information available in the Codex (&#60;a href=&#34;http://codex.wordpress.org/)&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/)&#60;/a&#62;.&#60;/p&#62;
&#60;p&#62;1.) Yes, this change would be in index.php&#60;/p&#62;
&#60;p&#62;2.) The code I provided is an example. You'd need to copy / paste the code and modify it to suit your needs.&#60;/p&#62;
&#60;p&#62;3.) If you set the query to your &#60;strong&#62;portfolio&#60;/strong&#62; items (this is by default a Custom Post Type) so change my example code query from:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;$additional_loop = new WP_Query(&#38;quot;post_type=testimonials&#38;amp;posts_per_page=5&#38;quot;);&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;to:&#60;/p&#62;
&#60;p&#62;`$additional_loop = new WP_Query(&#34;post_type=portfolio&#38;amp;posts_per_page=5&#34;);&#60;/p&#62;
&#60;p&#62;and adjust the &#60;strong&#62;posts_per_page&#60;/strong&#62; to the number of entries you want to show.&#60;/p&#62;
&#60;p&#62;4.) If you change the output to duplicate the default output (but using the portfolio entries as posts) this should behave as per the original code.&#60;/p&#62;
&#60;p&#62;I can guide you but this is a significant modification. If you feel out of your depth you could hire someone to complete this for you - there is a topic over at Theme Forest if you're looking for someone: &#60;a href=&#34;http://themeforest.net/forums/thread/so-you-know-how-to-customize-a-template-and-want-to-make-some-money/24795&#34; rel=&#34;nofollow&#34;&#62;http://themeforest.net/forums/thread/so-you-know-how-to-customize-a-template-and-want-to-make-some-money/24795&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Hope this helps you in the right direction.&#60;/p&#62;
&#60;p&#62;James
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m azma on "Portfolio widget problem on homepage"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-widget-problem-on-homepage#post-15600</link>
			<pubDate>Thu, 24 Mar 2011 16:52:06 +0000</pubDate>
			<dc:creator>m azma</dc:creator>
			<guid isPermaLink="false">15600@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey James,&#60;/p&#62;
&#60;p&#62;Thanks so much for the response. I have a couple follow-ups to your solution. Admittedly, I know very little about PHP, so please be patient with me as I try to understand.&#60;/p&#62;
&#60;p&#62;1 - I'm assuming these changes would need to take place in the index.php file?&#60;/p&#62;
&#60;p&#62; 2 - Do I copy ALL of the code from the second snippet you included above or just a portion to replace with the entire snippet of the first box?&#60;/p&#62;
&#60;p&#62;3 - Will this solution auto-populate the boxes with recent portfolio items or will I have manually be updating it each time I want a new portfolio piece to appear on the front page?&#60;/p&#62;
&#60;p&#62;4 - Will this maintain the same layout as the widget option? (square thumbnail to the left - text to the right, four entries per row, 2 rows)&#60;/p&#62;
&#60;p&#62;Thanks again for your help with this!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>James Morrison on "Portfolio widget problem on homepage"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-widget-problem-on-homepage#post-15573</link>
			<pubDate>Thu, 24 Mar 2011 11:22:18 +0000</pubDate>
			<dc:creator>James Morrison</dc:creator>
			<guid isPermaLink="false">15573@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;/p&#62;
&#60;p&#62;I wonder if instead of using widgets you be better off modifying the front page to use a custom query to load your different posts.&#60;/p&#62;
&#60;p&#62;The code you'd need to replace is:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php 

			// placeholder content if &#38;quot;display by html&#38;quot; was choosen: 

$placeholder[1] = &#38;#39;&#38;lt;h3&#38;gt;WP Theme CleanCut&#38;lt;/h3&#38;gt;&#38;lt;p&#38;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco &#38;lt;a href=&#38;quot;&#38;quot;&#38;gt;laboris nisi&#38;lt;/a&#38;gt; ut aliquip ex ea commodo conse. &#38;lt;a class=&#38;quot;more-link&#38;quot; href=&#38;quot;#&#38;quot;&#38;gt;Read more&#38;lt;/a&#38;gt;&#38;lt;/p&#38;gt;&#38;#39;;

$placeholder[2] = &#38;#39;&#38;lt;h3&#38;gt;Adobe Flash Videos&#38;lt;/h3&#38;gt;&#38;lt;p&#38;gt;Duis aute irure dolor in reprehenderit in voluptate velit esse cillum &#38;lt;strong&#38;gt;dolore eu fugiat&#38;lt;/strong&#38;gt; nulla pariatur.&#38;lt;br/&#38;gt; Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.&#38;lt;a class=&#38;quot;more-link&#38;quot; href=&#38;quot;#&#38;quot;&#38;gt;Read more&#38;lt;/a&#38;gt;&#38;lt;/p&#38;gt;&#38;#39;;

$placeholder[3] = &#38;#39;&#38;lt;h3&#38;gt;jQuery to the rescue&#38;lt;/h3&#38;gt;&#38;lt;p&#38;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo conse.
quat. &#38;lt;a class=&#38;quot;more-link&#38;quot; href=&#38;quot;#&#38;quot;&#38;gt;Read more&#38;lt;/a&#38;gt;&#38;lt;/p&#38;gt;&#38;#39;;

$placeholder[4] = &#38;#39;&#38;lt;h3&#38;gt;Advanced Backend&#38;lt;/h3&#38;gt;&#38;lt;p&#38;gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo conse.
quat. &#38;lt;a class=&#38;quot;more-link&#38;quot; href=&#38;quot;#&#38;quot;&#38;gt;Read more&#38;lt;/a&#38;gt;&#38;lt;/p&#38;gt;&#38;#39;;

			// this class generates the 4 boxes, either with backend content or the placeholder content above
				$k_option[&#38;#39;mainpage&#38;#39;][&#38;#39;mainpage_column&#38;#39;] = 4;
				$boxes = new kclass_display_box(&#38;#39;mainpage&#38;#39;,&#38;#39;mainpage_column&#38;#39;,&#38;#39;Mainpage Column&#38;#39;, $placeholder);
				$boxes-&#38;gt; prev_image($k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][&#38;#39;M&#38;#39;]);
				$boxes-&#38;gt; setClass(&#38;#39;one_fourth&#38;#39;);
				$boxes-&#38;gt; display(); 

			?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and you can use the Testimonial code below this code in the file:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;?php
			//query testimonials
			$additional_loop = new WP_Query(&#38;quot;post_type=testimonials&#38;amp;posts_per_page=5&#38;quot;); ?&#38;gt;

			&#38;lt;?php
			//if the query returned any results show the testimonial box
			if($additional_loop-&#38;gt;have_posts()) :

			$active[0] = &#38;#39;active_testimonial&#38;#39;;
			$active[1] = &#38;#39;t_slide_active&#38;#39;;
			?&#38;gt;

			&#38;lt;div class=&#38;#39;hr&#38;#39;&#38;gt;&#38;lt;a href=&#38;quot;#top&#38;quot; class=&#38;#39;scrollTop&#38;#39;&#38;gt;top&#38;lt;/a&#38;gt;&#38;lt;/div&#38;gt;
			&#38;lt;div id=&#38;quot;testimonial&#38;quot; class=&#38;#39;two_third&#38;#39;&#38;gt;
			&#38;lt;div class=&#38;quot;quote ie6fix&#38;quot;&#38;gt;&#38;lt;/div&#38;gt;

			&#38;lt;h1&#38;gt;Testimonials&#38;lt;/h1&#38;gt;
				&#38;lt;div class=&#38;quot;testimonial_author_pics&#38;quot;&#38;gt;

				&#38;lt;?php
				//displays the portfolio pictures
				while ($additional_loop-&#38;gt;have_posts()) : $additional_loop-&#38;gt;the_post();
				$img = kriesi_post_thumb(	$post-&#38;gt;ID, array(&#38;#39;size&#38;#39;=&#38;gt; array(&#38;#39;S&#38;#39;,&#38;#39;_testimonial_person&#38;#39;),
													&#38;#39;wh&#38;#39; =&#38;gt; $k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][&#38;#39;S&#38;#39;],
													&#38;#39;img_attr&#38;#39; =&#38;gt; array(&#38;#39;class&#38;#39;=&#38;gt;&#38;#39;ie6fix&#38;#39;),
													&#38;#39;display_link&#38;#39; =&#38;gt; array(&#38;#39;none&#38;#39;)
												));

				echo &#38;quot;&#38;lt;a href=&#38;#39;#&#38;#39; class=&#38;#39;&#38;quot;.$active[0].&#38;quot;&#38;#39;&#38;gt;&#38;quot;.$img.&#38;quot;&#38;lt;/a&#38;gt;&#38;quot;;
				$active[0] = &#38;quot;&#38;quot;;
				endwhile; ?&#38;gt;

				&#38;lt;span class=&#38;#39;testimonial_arrow ie6fix&#38;#39;&#38;gt;&#38;lt;/span&#38;gt;
			&#38;lt;!-- end testimonial_author_pics--&#38;gt;
			&#38;lt;/div&#38;gt;

			&#38;lt;div class=&#38;quot;testimonial_slides&#38;quot;&#38;gt;

			&#38;lt;?php
			$testimonials = false;
			//display the testimonial content
			while ($additional_loop-&#38;gt;have_posts()) : $additional_loop-&#38;gt;the_post();
			$testimonials = true;
			$name = get_post_meta($post-&#38;gt;ID, &#38;quot;_testimonial_person_name&#38;quot;, true);
			$url = get_post_meta($post-&#38;gt;ID, &#38;quot;_testimonial_person_url&#38;quot;, true);

			$small_prev_image = kriesi_post_thumb(	$post-&#38;gt;ID, array(&#38;#39;size&#38;#39;=&#38;gt; array(&#38;#39;SL&#38;#39;),
													&#38;#39;wh&#38;#39; =&#38;gt; $k_option[&#38;#39;custom&#38;#39;][&#38;#39;imgSize&#38;#39;][&#38;#39;SL&#38;#39;],
													&#38;#39;img_attr&#38;#39; =&#38;gt; array(&#38;#39;class&#38;#39;=&#38;gt;&#38;#39;ie6fix&#38;#39;),
													&#38;#39;display_link&#38;#39; =&#38;gt; &#38;#39;_testimonial_person_url&#38;#39;
												));

			?&#38;gt;
			&#38;lt;div class=&#38;#39;t_slide &#38;lt;?php echo $active[1]; $active[1] = &#38;#39;&#38;#39;; ?&#38;gt;&#38;#39;&#38;gt;

					&#38;lt;?php
					//thumbnail image
					if($small_prev_image)
					{
						echo &#38;quot;&#38;lt;span class=&#38;#39;testimonial_img&#38;#39;&#38;gt;&#38;quot;.$small_prev_image.&#38;quot;&#38;lt;/span&#38;gt;&#38;quot;;
					}

					//content
					echo &#38;quot;&#38;lt;div class=&#38;#39;testimonial_entry&#38;#39;&#38;gt;&#38;quot;;
					echo &#38;quot;&#38;lt;strong class=&#38;#39;heading&#38;#39;&#38;gt;&#38;quot;.get_the_title().&#38;quot;&#38;lt;/strong&#38;gt;&#38;quot;;
					the_content(&#38;#39;Read more&#38;#39;); 

					//name
					if($name)
					{
						echo &#38;#39;&#38;lt;strong class=&#38;quot;testimonial_author&#38;quot;&#38;gt;&#38;#39;;
						echo $url != &#38;quot;&#38;quot; ? &#38;quot;&#38;lt;a href=&#38;#39;&#38;quot;.$url.&#38;quot;&#38;#39;&#38;gt;&#38;quot;.$name.&#38;quot;&#38;lt;/a&#38;gt;&#38;quot;: $name;
						echo &#38;#39;&#38;lt;/strong&#38;gt;&#38;#39;;
					}
					echo &#38;quot;&#38;lt;/div&#38;gt;&#38;quot;;
					?&#38;gt;
				&#38;lt;!--end t_slide--&#38;gt;
				&#38;lt;/div&#38;gt;

			&#38;lt;?php
			endwhile;
			?&#38;gt;
			&#38;lt;!--end testimonial_slides --&#38;gt;
			&#38;lt;/div&#38;gt;
			&#38;lt;!--end testimonial--&#38;gt;
			&#38;lt;/div&#38;gt;
			&#38;lt;?php
			endif;
			?&#38;gt;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;as an example Query.&#60;/p&#62;
&#60;p&#62;This would allow you more control over the output.&#60;/p&#62;
&#60;p&#62;James
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m azma on "Portfolio widget problem on homepage"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-widget-problem-on-homepage#post-15551</link>
			<pubDate>Wed, 23 Mar 2011 21:57:00 +0000</pubDate>
			<dc:creator>m azma</dc:creator>
			<guid isPermaLink="false">15551@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I've posted screenshots of my dashboard items pertaining to this question here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.stations-studio.com/_ForSupport&#34; rel=&#34;nofollow&#34;&#62;http://www.stations-studio.com/_ForSupport&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>m azma on "Portfolio widget problem on homepage"</title>
			<link>http://www.kriesi.at/support/topic/portfolio-widget-problem-on-homepage#post-15550</link>
			<pubDate>Wed, 23 Mar 2011 21:52:32 +0000</pubDate>
			<dc:creator>m azma</dc:creator>
			<guid isPermaLink="false">15550@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hello!&#60;/p&#62;
&#60;p&#62;I am new to Wordpress theme configuring, but have spent sometime editing the Cleancut theme and have been VERY happy with it. I tried several others from different design groups, but yours is thee best. You have all done an amazing job and your support forum seems really helpful.&#60;/p&#62;
&#60;p&#62;I have my first question/problem that I'm hoping you'll be able to help me with.&#60;/p&#62;
&#60;p&#62;On my homepage, I've set it up so that the two row/four columns below the slider image pull items from my portfolio to feature as 'Recent Work', however I am unable to get the category query function to work. I would like each spot to show a different recent portfolio post, chronologically if possible. Instead, it just posts the same two over and over across the four columns.&#60;/p&#62;
&#60;p&#62;Here is the URL to my site for further viewing: &#60;a href=&#34;http://www.stations-studio.com/site&#34; rel=&#34;nofollow&#34;&#62;http://www.stations-studio.com/site&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I read this similar post:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://www.kriesi.at/support/topic/mainpage-displaying-latest-work-from-portfolio-categories-on-a-new-line&#34; rel=&#34;nofollow&#34;&#62;http://www.kriesi.at/support/topic/mainpage-displaying-latest-work-from-portfolio-categories-on-a-new-line&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;But wasn't sure how to implement those changes.&#60;/p&#62;
&#60;p&#62;When I tried entering the category id in the sidebar widget for Cleancut Sidebar News (which I use to populate the front page Portfolio items) with the category id 'web', which is what I have set my portfolio items that pertain to web design, it now doesn't even display it and only shows three columns on my homepage. &#60;/p&#62;
&#60;p&#62;Any help would be greatly appreciated!&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to use the sidebar news widget to display portfolio items instead of posts?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts#post-13763</link>
			<pubDate>Tue, 01 Mar 2011 15:20:50 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">13763@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Update: I posted a modified query code. Now it's possible to show certain portfolio categories only....
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to use the sidebar news widget to display portfolio items instead of posts?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts#post-12345</link>
			<pubDate>Fri, 04 Feb 2011 07:38:39 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">12345@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;When I've some time. At the moment I'm missing some help here (normally 2 (or more) persons are required to handle all requests). I take an exam in criminal law in around 4 weeks so my time is limited. As this topic is beyond the scope of this support forum I'll look into it when I've some working hours left.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jeroen de Boer on "How to use the sidebar news widget to display portfolio items instead of posts?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts#post-12295</link>
			<pubDate>Thu, 03 Feb 2011 11:23:17 +0000</pubDate>
			<dc:creator>Jeroen de Boer</dc:creator>
			<guid isPermaLink="false">12295@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Can you give an idea when you think you can have it figured out?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to use the sidebar news widget to display portfolio items instead of posts?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts#post-12273</link>
			<pubDate>Thu, 03 Feb 2011 08:53:39 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">12273@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
no I don't have enough time at the moment...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jeroen de Boer on "How to use the sidebar news widget to display portfolio items instead of posts?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts#post-12259</link>
			<pubDate>Thu, 03 Feb 2011 08:09:57 +0000</pubDate>
			<dc:creator>Jeroen de Boer</dc:creator>
			<guid isPermaLink="false">12259@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;@Dude: Any luck yet?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jeroen de Boer on "How to use the sidebar news widget to display portfolio items instead of posts?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts#post-11914</link>
			<pubDate>Thu, 27 Jan 2011 07:42:39 +0000</pubDate>
			<dc:creator>Jeroen de Boer</dc:creator>
			<guid isPermaLink="false">11914@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks for looking into it. I hope you can figure it out!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to use the sidebar news widget to display portfolio items instead of posts?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts#post-11865</link>
			<pubDate>Wed, 26 Jan 2011 08:58:33 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">11865@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I'll look into it if we can get the portfolio categories to work. I think they're based on tags...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Jeroen de Boer on "How to use the sidebar news widget to display portfolio items instead of posts?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts#post-11812</link>
			<pubDate>Tue, 25 Jan 2011 15:36:58 +0000</pubDate>
			<dc:creator>Jeroen de Boer</dc:creator>
			<guid isPermaLink="false">11812@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Same problem here.&#60;br /&#62;
Had some help to create a second version of sidebar_news.php to only show portfolio items in sidebar. This now shows all portfolio-items from all categories is I leave this field empty. As soon as I fill in id's it shows nothing.&#60;br /&#62;
Any fix for this?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>FWCMedia on "How to use the sidebar news widget to display portfolio items instead of posts?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts#post-11806</link>
			<pubDate>Tue, 25 Jan 2011 14:09:00 +0000</pubDate>
			<dc:creator>FWCMedia</dc:creator>
			<guid isPermaLink="false">11806@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Perfect!  Thanks so much, this will be a great asset to our website.  One note:  I tried using category IDs to only pull certain portfolio entries, but it did not work.  Once I left the Cat ID field blank (in the widget area), my portfolio entries started popping up!  If there is any way to only pick certain categories, that would be awesome.  If not, this is still an awesome tool.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to use the sidebar news widget to display portfolio items instead of posts?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-use-the-sidebar-news-widget-to-display-portfolio-items-instead-of-posts#post-11731</link>
			<pubDate>Sun, 23 Jan 2011 18:41:21 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">11731@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;&#60;font color=&#34;tomato&#34;&#62;Attention: This modification requires WP3.1+. It won't work with WP 3.0.x or WP2.x !!!!! &#60;/font&#62;&#60;/p&#62;
&#60;p&#62;Open up /framework/theme_widgets/sidebar_news.php and find following code:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$additional_loop = new WP_Query(&#38;quot;cat=&#38;quot;.$cat.&#38;quot;&#38;amp;posts_per_page=&#38;quot;.$count);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Change it to:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;if (!empty($cat))

				{
		        $array_cat = explode(&#38;quot;,&#38;quot;, $cat);
				$myquery = array(
							 &#38;#39;posts_per_page&#38;#39;=&#38;gt; $count,
							 &#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; $array_cat ,
											    &#38;#39;operator&#38;#39; =&#38;gt; &#38;#39;IN&#38;#39;
											      )
										       )
						);

                }else{

								$myquery = &#38;#39;post_type=portfolio&#38;amp;taxonomy=portfolio_entries&#38;amp;posts_per_page=&#38;#39;.$count;

				}

$additional_loop = new WP_Query($myquery);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;If you want to use the sidebar news widget AND a portfolio items widget you must duplicate the widget file. First make a copy of sidebar_news.php located under /framework/theme_widgets and name the copy sidebar_portfolio.php&#60;/p&#62;
&#60;p&#62;Then replace all occurrences of&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;kriesi_sidebar_news_widget&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;kriesi_sidebar_portfolio_widget&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;(ignore lower/uppercase).&#60;/p&#62;
&#60;p&#62;At least replace following code in functions.php:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$autoload[&#38;#39;widgets&#38;#39;] = array(&#38;#39;sidebar_news&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$autoload[&#38;#39;widgets&#38;#39;] = array(&#38;#39;sidebar_news&#38;#39;, &#38;#39;sidebar_portfolio&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
		</item>

	</channel>
</rss>
