<?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: How to exclude portfolio categories from sortable portfolio overview page?</title>
		<link>http://www.kriesi.at/support/topic/how-to-exclude-portfolio-categories-from-sortable-portfolio-overview-page</link>
		<description>Support Forum - Topic: How to exclude portfolio categories from sortable portfolio overview page?</description>
		<language>en-US</language>
		<pubDate>Sat, 25 May 2013 23:52:38 +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/how-to-exclude-portfolio-categories-from-sortable-portfolio-overview-page" rel="self" type="application/rss+xml" />

		<item>
			<title>Devin on "How to exclude portfolio categories from sortable portfolio overview page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-portfolio-categories-from-sortable-portfolio-overview-page#post-75216</link>
			<pubDate>Mon, 10 Sep 2012 15:57:04 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">75216@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Try reloading the includes&#38;gt;loop-portfolio.php to where it was to begin with. If you didn't save a backup, you can re-download the theme files from themeforest under your Downloads.&#60;/p&#62;
&#60;p&#62;Now, search for:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$args = array(

		&#38;#39;taxonomy&#38;#39;	=&#38;gt; &#38;#39;portfolio_entries&#38;#39;,
		&#38;#39;hide_empty&#38;#39;=&#38;gt; 0,
		&#38;#39;include&#38;#39;	=&#38;gt; $includeArray

	);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Replace that with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$filtered_cats = array_filter($includeArray,
	function ($cat){
		return ($cat != &#38;#39;91&#38;#39;);
	}
);
$includeArray = $filtered_cats;

$args = array(

		&#38;#39;taxonomy&#38;#39;	=&#38;gt; &#38;#39;portfolio_entries&#38;#39;,
		&#38;#39;hide_empty&#38;#39;=&#38;gt; 0,
		&#38;#39;include&#38;#39;	=&#38;gt; $includeArray
	);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Where 91 is your category that you want to exclude.&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "How to exclude portfolio categories from sortable portfolio overview page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-portfolio-categories-from-sortable-portfolio-overview-page#post-74911</link>
			<pubDate>Sat, 08 Sep 2012 07:34:14 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">74911@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi @all,&#60;/p&#62;
&#60;p&#62;I guess, this is not a matter of generally not working, I guess, that I for myself have made a mistake adding the code mentioned above. I'm not very familiar with PHP, but it seems that I have added DUDE's code on the wrong place or have replaced not the right things. We should first solve this ;-) Thanks.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Devin on "How to exclude portfolio categories from sortable portfolio overview page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-portfolio-categories-from-sortable-portfolio-overview-page#post-74822</link>
			<pubDate>Fri, 07 Sep 2012 17:43:36 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">74822@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi colorit2,&#60;/p&#62;
&#60;p&#62;Unfortunately I'm not sure we can do anything else. I would approach it the same way Peter has which for some reason doesn't seem to be working.&#60;/p&#62;
&#60;p&#62;We can tag Kriesi to take a look and he might be able to help figure out a solution.&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Mya on "How to exclude portfolio categories from sortable portfolio overview page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-portfolio-categories-from-sortable-portfolio-overview-page#post-74798</link>
			<pubDate>Fri, 07 Sep 2012 13:34:45 +0000</pubDate>
			<dc:creator>Mya</dc:creator>
			<guid isPermaLink="false">74798@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi colorit,&#60;/p&#62;
&#60;p&#62;I'm going to tag Nick and Devin to this to see if they may be able to help.&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Mya
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "How to exclude portfolio categories from sortable portfolio overview page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-portfolio-categories-from-sortable-portfolio-overview-page#post-74505</link>
			<pubDate>Wed, 05 Sep 2012 15:04:19 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">74505@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;thanks a lot, Dude, but still an error:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
Warning: array_filter() expects parameter 1 to be array, string given in /home/www/web333/html/sites/wp-content/themes/corona/includes/loop-portfolio.php on line 52&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;the code, that I have now inserted (line 43-65):&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/4668618&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4668618&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to exclude portfolio categories from sortable portfolio overview page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-portfolio-categories-from-sortable-portfolio-overview-page#post-74438</link>
			<pubDate>Wed, 05 Sep 2012 06:05:02 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">74438@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I updated the code - it seems like it's an array and not a string - this is quite strange though because according to the docs: &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_categories&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/get_categories&#60;/a&#62; exclude does not accept an array...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "How to exclude portfolio categories from sortable portfolio overview page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-portfolio-categories-from-sortable-portfolio-overview-page#post-74371</link>
			<pubDate>Tue, 04 Sep 2012 19:11:39 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">74371@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;thanks for your patience and help, but I'm not quite sure, if I have added it right, because I get now an error:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
Warning: explode() expects parameter 2 to be string, array given in /home/www/web333/html/sites/wp-content/themes/corona/includes/loop-portfolio.php on line 56&#60;/p&#62;
&#60;p&#62;Warning: array_filter() expects parameter 1 to be array, null given in /home/www/web333/html/sites/wp-content/themes/corona/includes/loop-portfolio.php on line 61&#60;/p&#62;
&#60;p&#62;Warning: implode() [function.implode]: Invalid arguments passed in /home/www/web333/html/sites/wp-content/themes/corona/includes/loop-portfolio.php on line 62&#60;/p&#62;
&#60;p&#62;&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;This is what I've added:&#60;br /&#62;
&#60;a href=&#34;http://pastie.org/4663936&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/4663936&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I'm not so familiar with PHP so maybe I have added something at the wrong place or too much/less?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to exclude portfolio categories from sortable portfolio overview page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-portfolio-categories-from-sortable-portfolio-overview-page#post-74327</link>
			<pubDate>Tue, 04 Sep 2012 14:24:31 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">74327@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Yeah, I hoped that it's possible to include and exclude a category at the same time but obviously it's not. Use following code instead:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$filtered_cats = array_filter($includeArray,
	function ($cat){
		return ($cat != &#38;#39;91&#38;#39;);
	}
);
$includeArray = $filtered_cats;

$args = array(

		&#38;#39;taxonomy&#38;#39;	=&#38;gt; &#38;#39;portfolio_entries&#38;#39;,
		&#38;#39;hide_empty&#38;#39;=&#38;gt; 0,
		&#38;#39;include&#38;#39;	=&#38;gt; $includeArray
	);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and use your own id instead of 91.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "How to exclude portfolio categories from sortable portfolio overview page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-portfolio-categories-from-sortable-portfolio-overview-page#post-74312</link>
			<pubDate>Tue, 04 Sep 2012 13:04:44 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">74312@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;thanks, I've tried it, but it excluded nothing. I have verified, that I have the right portfolio category IDs, but nothing is excluded.&#60;br /&#62;
Maybe the template builder is a reason, because this page, I'm talking here about, is created as a &#34;normal&#34; page with a dynamic template, including some elements, text etc., and a part with a portfolio overview - sortable.&#60;br /&#62;
The function itself (the sorting) works fine, but it doesn't exclude the ID 91 in my case.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "How to exclude portfolio categories from sortable portfolio overview page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-portfolio-categories-from-sortable-portfolio-overview-page#post-74248</link>
			<pubDate>Tue, 04 Sep 2012 05:58:33 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">74248@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Try following - open up includes/loop-portfolio.php and replace:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$args = array(

		&#38;#39;taxonomy&#38;#39;	=&#38;gt; &#38;#39;portfolio_entries&#38;#39;,
		&#38;#39;hide_empty&#38;#39;=&#38;gt; 0,
		&#38;#39;include&#38;#39;	=&#38;gt; $includeArray

	);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$args = array(

		&#38;#39;taxonomy&#38;#39;	=&#38;gt; &#38;#39;portfolio_entries&#38;#39;,
		&#38;#39;hide_empty&#38;#39;=&#38;gt; 0,
		&#38;#39;include&#38;#39;	=&#38;gt; $includeArray,
&#38;#39;exlude&#38;#39; =&#38;gt; &#38;#39;18&#38;#39;
	);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and instead of 18 insert the id of your &#34;sold&#34; category.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>colorit2 on "How to exclude portfolio categories from sortable portfolio overview page?"</title>
			<link>http://www.kriesi.at/support/topic/how-to-exclude-portfolio-categories-from-sortable-portfolio-overview-page#post-74218</link>
			<pubDate>Mon, 03 Sep 2012 23:33:33 +0000</pubDate>
			<dc:creator>colorit2</dc:creator>
			<guid isPermaLink="false">74218@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;How can I exclude some special &#34;portfolio categories&#34; from the &#34;sortable portfolio overview page&#34;?&#60;br /&#62;
I mean not the images (they should be shown), but only the small words of those special categories, with which we can sort the portfolio items at their overview page.&#60;/p&#62;
&#60;p&#62;Here: the words &#34;verkauft&#34;, &#34;verfügbar&#34; (= portfolio categories) should not appear at this overview, but the images, tagged with this categories should remain there!&#60;/p&#62;
&#60;p&#62;&#60;em&#62;Explanation: I tag images with, for example, &#34;Acryl&#34; + &#34;verkauft&#34; and show at the portfolio single page a status &#34;sold&#34;.&#60;br /&#62;
&#34;Sold&#34; is set as a portfolio category.&#60;br /&#62;
But this category has the only aim, to show me the status at the portfolio single view,&#60;br /&#62;
and the (portfolio category) word &#34;sold&#34; should not appear on the portfolio overview page, but images tagged with it, should remain.&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;&#60;img src=&#34;http://i47.tinypic.com/34dldf6.jpg&#34; /&#62;&#60;/p&#62;
&#60;p&#62;Thanks.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
