<?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: get parent category from product</title>
		<link>http://www.kriesi.at/support/topic/get-parent-category-from-product</link>
		<description>Support Forum - Topic: get parent category from product</description>
		<language>en-US</language>
		<pubDate>Fri, 24 May 2013 18:22:06 +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/get-parent-category-from-product" rel="self" type="application/rss+xml" />

		<item>
			<title>cevandermeij on "get parent category from product"</title>
			<link>http://www.kriesi.at/support/topic/get-parent-category-from-product#post-41854</link>
			<pubDate>Wed, 15 Feb 2012 15:49:37 +0000</pubDate>
			<dc:creator>cevandermeij</dc:creator>
			<guid isPermaLink="false">41854@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Never mind. I already solved this by using this code:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
&#38;lt;?php echo $_product-&#38;gt;get_categories( ', ', ' &#38;lt;span class=&#34;posted_in&#34;&#38;gt;'.__('Category:', 'woothemes').' ', '.&#38;lt;/span&#38;gt;'); ?&#38;gt;&#60;br /&#62;
&#60;/code&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>cevandermeij on "get parent category from product"</title>
			<link>http://www.kriesi.at/support/topic/get-parent-category-from-product#post-41829</link>
			<pubDate>Wed, 15 Feb 2012 14:27:02 +0000</pubDate>
			<dc:creator>cevandermeij</dc:creator>
			<guid isPermaLink="false">41829@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I would like to display a link to the product parent category on a single product page. It should be like a breadcrumb but it should only have the name of the parent category.&#60;/p&#62;
&#60;p&#62;For example:&#60;/p&#62;
&#60;p&#62;Product CAT 1&#60;br /&#62;
- Product X&#60;br /&#62;
- Product Y&#60;/p&#62;
&#60;p&#62;When being on the product X page, a link should be displayed to Product CAT 1. Right now the breadcrumb looks like this:&#60;/p&#62;
&#60;p&#62;Home » Shop » Product category slug » Product name&#60;/p&#62;
&#60;p&#62;The Product category slug is always the same as it is the name configured at WooCommerce=&#38;gt;settings=&#38;gt;pages under 'Permalinks'. I think we should edit some code in the class-breadcrumb.php file located in abundance\framework\php\&#60;/p&#62;
&#60;p&#62;This is some code of the original class-breadcrumb.php file that I use:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
/* Open the breadcrumb trail containers. */&#60;br /&#62;
		$breadcrumb = '&#38;lt;div class=&#34;breadcrumb breadcrumbs avia-breadcrumbs&#34;&#38;gt;&#38;lt;div class=&#34;breadcrumb-trail&#34;&#38;gt;';&#60;/p&#62;
&#60;p&#62;		/* If $before was set, wrap it in a container. */&#60;br /&#62;
		if ( !empty( $before ) )&#60;br /&#62;
			$breadcrumb .= '&#38;lt;span class=&#34;trail-before&#34;&#38;gt;' . $before . '&#38;lt;/span&#38;gt; ';&#60;/p&#62;
&#60;p&#62;		/* Wrap the $trail['trail_end'] value in a container. */&#60;br /&#62;
		if ( !empty( $trail['trail_end'] ) )&#60;br /&#62;
			$trail['trail_end'] = '&#38;lt;span class=&#34;trail-end&#34;&#38;gt;' . $trail['trail_end'] . '&#38;lt;/span&#38;gt;';&#60;/p&#62;
&#60;p&#62;		/* Format the separator. */&#60;br /&#62;
		if ( !empty( $separator ) )&#60;br /&#62;
			$separator = '&#38;lt;span class=&#34;sep&#34;&#38;gt;' . $separator . '&#38;lt;/span&#38;gt;';&#60;/p&#62;
&#60;p&#62;		/* Join the individual trail items into a single string. */&#60;br /&#62;
		$breadcrumb .= join( &#34; {$separator} &#34;, $trail );&#60;/p&#62;
&#60;p&#62;		/* If $after was set, wrap it in a container. */&#60;br /&#62;
		if ( !empty( $after ) )&#60;br /&#62;
			$breadcrumb .= ' &#38;lt;span class=&#34;trail-after&#34;&#38;gt;' . $after . '&#38;lt;/span&#38;gt;';&#60;/p&#62;
&#60;p&#62;		/* Close the breadcrumb trail containers. */&#60;br /&#62;
		$breadcrumb .= '&#38;lt;/div&#38;gt;&#38;lt;/div&#38;gt;';&#60;br /&#62;
	}&#60;/p&#62;
&#60;p&#62;	/* Allow developers to filter the breadcrumb trail HTML. */&#60;br /&#62;
	$breadcrumb = apply_filters( 'avia_breadcrumbs', $breadcrumb );&#60;/p&#62;
&#60;p&#62;	/* Output the breadcrumb. */&#60;br /&#62;
	if ( $echo )&#60;br /&#62;
		echo $breadcrumb;&#60;br /&#62;
	else&#60;br /&#62;
		return $breadcrumb;&#60;/p&#62;
&#60;p&#62;} // End avia_breadcrumbs()&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;Any ideas to achieve this?&#60;/p&#62;
&#60;p&#62;Thanks and keep up the good work. I love this theme!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
