<?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 category problem...</title>
		<link>http://www.kriesi.at/support/topic/portfolio-category-problem</link>
		<description>Support Forum - Topic: portfolio category problem...</description>
		<language>en-US</language>
		<pubDate>Thu, 23 May 2013 06:26:52 +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-category-problem" rel="self" type="application/rss+xml" />

		<item>
			<title>Dude on "portfolio category problem..."</title>
			<link>http://www.kriesi.at/support/topic/portfolio-category-problem#post-89264</link>
			<pubDate>Fri, 21 Dec 2012 19:02:10 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">89264@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I looked into it and the only &#34;solution&#34; I can provide is a php code snippet which removes empty or &#34;unnecessary&#34; categories from the current portfolio page. Thus the portfolio will only show categories which will display one or more entries if you click on the link. Open up includes/loop-portfolio.php and replace following lines:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$categories = get_categories($args);
	$container_id = &#38;quot;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$categories = get_categories($args);
	$container_id = &#38;quot;&#38;quot;;

	$current_page_cats = array();
	while (have_posts()){
		the_post();
		$current_item_cats = get_the_terms( $id, &#38;#39;portfolio_entries&#38;#39; );
		if(!empty($current_item_cats))
		{
			foreach($current_item_cats as $current_item_cat)
			{
				$current_page_cats[] = $current_item_cat-&#38;gt;term_id;
			}
		}
	}
	$current_page_cats = array_unique($current_page_cats);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;and:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$output .= &#38;quot;&#38;lt;span class=&#38;#39;text-sep &#38;quot;.$category-&#38;gt;category_nicename.&#38;quot;_sort_sep&#38;#39;&#38;gt;/&#38;lt;/span&#38;gt;&#38;lt;a href=&#38;#39;#&#38;#39; data-filter=&#38;#39;&#38;quot;.$category-&#38;gt;category_nicename.&#38;quot;_sort&#38;#39; class=&#38;#39;&#38;quot;.$category-&#38;gt;category_nicename.&#38;quot;_sort_button&#38;#39; &#38;gt;&#38;quot;.$category-&#38;gt;cat_name.&#38;quot;&#38;lt;/a&#38;gt;&#38;quot;;
					$container_id .= $category-&#38;gt;term_id;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(in_array($category-&#38;gt;term_id, $current_page_cats, true))
				{
					$output .= &#38;quot;&#38;lt;span class=&#38;#39;text-sep &#38;quot;.$category-&#38;gt;category_nicename.&#38;quot;_sort_sep&#38;#39;&#38;gt;/&#38;lt;/span&#38;gt;&#38;lt;a href=&#38;#39;#&#38;#39; data-filter=&#38;#39;&#38;quot;.$category-&#38;gt;category_nicename.&#38;quot;_sort&#38;#39; class=&#38;#39;&#38;quot;.$category-&#38;gt;category_nicename.&#38;quot;_sort_button&#38;#39; &#38;gt;&#38;quot;.$category-&#38;gt;cat_name.&#38;quot;&#38;lt;/a&#38;gt;&#38;quot;;
					$container_id .= $category-&#38;gt;term_id;
				}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Ismael on "portfolio category problem..."</title>
			<link>http://www.kriesi.at/support/topic/portfolio-category-problem#post-89190</link>
			<pubDate>Fri, 21 Dec 2012 04:46:45 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">89190@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Like Dude said, disable the &#34;Portfolio pagination&#34; to show all portfolio items. Filtering will only show the items on a specific category if they exist on that page. &#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcidiot on "portfolio category problem..."</title>
			<link>http://www.kriesi.at/support/topic/portfolio-category-problem#post-89188</link>
			<pubDate>Fri, 21 Dec 2012 02:05:32 +0000</pubDate>
			<dc:creator>mcidiot</dc:creator>
			<guid isPermaLink="false">89188@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;so how can i solve this problem?&#60;/p&#62;
&#60;p&#62;or  use the 'plug-in'?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "portfolio category problem..."</title>
			<link>http://www.kriesi.at/support/topic/portfolio-category-problem#post-89106</link>
			<pubDate>Thu, 20 Dec 2012 16:31:22 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">89106@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;The portfolio/category filter will not work properly if you use the pagination feature because the filter can't sort/filter items across pages. Eg on this page: &#60;a href=&#34;http://snowsanta.com/?paged=2&#34; rel=&#34;nofollow&#34;&#62;http://snowsanta.com/?paged=2&#60;/a&#62; the &#34;film&#34; filter will display some items. If you want to make sure that the filter function takes all items into account deactivate the portfolio pagination and display all items on one page.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>mcidiot on "portfolio category problem..."</title>
			<link>http://www.kriesi.at/support/topic/portfolio-category-problem#post-89082</link>
			<pubDate>Thu, 20 Dec 2012 12:21:10 +0000</pubDate>
			<dc:creator>mcidiot</dc:creator>
			<guid isPermaLink="false">89082@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;hello my site is&#60;br /&#62;
snowsanta.com&#60;/p&#62;
&#60;p&#62;ALL/Film/IMC/ is my portfolio category&#60;/p&#62;
&#60;p&#62;when i clicked on 'film' in the category i couldn't see anything&#60;/p&#62;
&#60;p&#62;but 'IMC' was OK&#60;/p&#62;
&#60;p&#62;then, i clicked on tne 'page', and it went back to 'all' in the category.&#60;/p&#62;
&#60;p&#62;what should i do?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
