<?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: Breadcrumbs glitching... illogical structure</title>
		<link>http://www.kriesi.at/support/topic/breadcrumbs-glitching-illogical-structure</link>
		<description>Support Forum - Topic: Breadcrumbs glitching... illogical structure</description>
		<language>en-US</language>
		<pubDate>Tue, 21 May 2013 04:27:34 +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/breadcrumbs-glitching-illogical-structure" rel="self" type="application/rss+xml" />

		<item>
			<title>Devin on "Breadcrumbs glitching... illogical structure"</title>
			<link>http://www.kriesi.at/support/topic/breadcrumbs-glitching-illogical-structure#post-67413</link>
			<pubDate>Tue, 24 Jul 2012 19:27:41 +0000</pubDate>
			<dc:creator>Devin</dc:creator>
			<guid isPermaLink="false">67413@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi dunkfu,&#60;/p&#62;
&#60;p&#62;Thanks for posting your end fix. I'm not sure what else you could do with get_the_term_list as it seems to be a bit limited. See: &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/get_the_term_list&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/get_the_term_list&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Regards,&#60;/p&#62;
&#60;p&#62;Devin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dunkfu on "Breadcrumbs glitching... illogical structure"</title>
			<link>http://www.kriesi.at/support/topic/breadcrumbs-glitching-illogical-structure#post-66792</link>
			<pubDate>Fri, 20 Jul 2012 18:42:59 +0000</pubDate>
			<dc:creator>dunkfu</dc:creator>
			<guid isPermaLink="false">66792@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;Thank you for the response, the above code didn't change the output. I added some hacks to the code that displayed it correct some of the time but it seems like get_the_term_list doesn't always return the array in the same parent/child category order so it is a bit flaky. Here is my hack that sorta fixes the problem, is it possible to bullet proof this or maybe it's not possible to fix this when a product is in multiple categories? &#60;/p&#62;
&#60;p&#62;$prod_cat = array();&#60;br /&#62;
//$prod_cat[] = get_the_term_list(get_the_ID(), 'product_cat','','','','');&#60;br /&#62;
//$trail[] = $prod_cat[0];&#60;/p&#62;
&#60;p&#62;$prod_cat[] = get_the_term_list(get_the_ID(), 'product_cat','',';','','');&#60;br /&#62;
$cat_array = explode(&#34;;&#34;, $prod_cat[0]);&#60;br /&#62;
$parent = $cat_array[count($cat_array) - 1]; &#60;/p&#62;
&#60;p&#62;if(count($cat_array) &#38;gt;= 2) {&#60;br /&#62;
   $child = $cat_array[count($cat_array) - 2];&#60;br /&#62;
} else {&#60;br /&#62;
   $child = $cat_array[0];&#60;br /&#62;
}&#60;br /&#62;
if(count($cat_array) &#38;gt; 0 ) {&#60;br /&#62;
   if($parent == $child) {&#60;br /&#62;
     $trail_array = $parent;&#60;br /&#62;
   } else {&#60;br /&#62;
     $trail_array = $parent . ' &#38;lt;span class=&#34;sep&#34;&#38;gt;' . $separator . '&#38;lt;/span&#38;gt; ' . $child;&#60;br /&#62;
   }&#60;br /&#62;
    $trail[] = $trail_array;&#60;br /&#62;
}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Ismael on "Breadcrumbs glitching... illogical structure"</title>
			<link>http://www.kriesi.at/support/topic/breadcrumbs-glitching-illogical-structure#post-66619</link>
			<pubDate>Fri, 20 Jul 2012 00:26:26 +0000</pubDate>
			<dc:creator>Ismael</dc:creator>
			<guid isPermaLink="false">66619@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;Replace the code with this.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/* If there&#38;#39;s an archive page, add it to the trail. */
			if ( !empty( $post_type_object-&#38;gt;has_archive ) &#38;amp;&#38;amp; function_exists( &#38;#39;get_post_type_archive_link&#38;#39; ) ){
					if (is_product()){
						$prod_cat = array();
						$prod_cat[] = get_the_term_list(get_the_ID(), &#38;#39;product_cat&#38;#39;,&#38;#39;&#38;#39;,&#38;#39;&#38;#39;,&#38;#39;&#38;#39;,&#38;#39;&#38;#39;);
						$trail[] = $prod_cat[0];
					}else{
						$trail[] = &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . get_post_type_archive_link( $post_type ) . &#38;#39;&#38;quot; title=&#38;quot;&#38;#39; . esc_attr( $post_type_object-&#38;gt;labels-&#38;gt;name ) . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . $post_type_object-&#38;gt;labels-&#38;gt;name . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
					}
				}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Ismael
&#60;/p&#62;</description>
		</item>
		<item>
			<title>dunkfu on "Breadcrumbs glitching... illogical structure"</title>
			<link>http://www.kriesi.at/support/topic/breadcrumbs-glitching-illogical-structure#post-66610</link>
			<pubDate>Thu, 19 Jul 2012 22:51:25 +0000</pubDate>
			<dc:creator>dunkfu</dc:creator>
			<guid isPermaLink="false">66610@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;I have the same issue, implementing the above code does add in the Category however it adds in all categories it is in without spaces, in the following example &#34; Eco Friendly OptionsPack N PlaysSleepy Time&#34; is 3 categories: Eco Friendly Options, Pack N Plays and Sleepy Time&#60;/p&#62;
&#60;p&#62;You are here: Home » Browse Products » Eco Friendly OptionsPack N PlaysSleepy Time » BABYBJÖRN Travel Crib Light 2&#60;br /&#62;
BABYBJÖRN Travel Crib Light 2&#60;/p&#62;
&#60;p&#62;This code:&#60;br /&#62;
$prod_cat[] = get_the_term_list(get_the_ID(), 'product_cat');&#60;br /&#62;
var_dump(	$prod_cat);				&#60;/p&#62;
&#60;p&#62;Shows:&#60;br /&#62;
array(1) { [0]=&#38;gt; string(333) &#34;Eco Friendly OptionsPack N PlaysSleepy Time&#34; }&#60;/p&#62;
&#60;p&#62;Is there any way around this?&#60;/p&#62;
&#60;p&#62;Thanks for the help
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Martin from WaldWort digital publishing on "Breadcrumbs glitching... illogical structure"</title>
			<link>http://www.kriesi.at/support/topic/breadcrumbs-glitching-illogical-structure#post-42274</link>
			<pubDate>Fri, 17 Feb 2012 21:17:02 +0000</pubDate>
			<dc:creator>Martin from WaldWort digital publishing</dc:creator>
			<guid isPermaLink="false">42274@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Thanks Dude, that seems to do the trick!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Dude on "Breadcrumbs glitching... illogical structure"</title>
			<link>http://www.kriesi.at/support/topic/breadcrumbs-glitching-illogical-structure#post-42250</link>
			<pubDate>Fri, 17 Feb 2012 18:01:57 +0000</pubDate>
			<dc:creator>Dude</dc:creator>
			<guid isPermaLink="false">42250@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Hey,&#60;br /&#62;
open up abundance\framework\php\class-breadcrumb.php and replace:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;/* If there&#38;#39;s an archive page, add it to the trail. */
if ( !empty( $post_type_object-&#38;gt;has_archive ) &#38;amp;&#38;amp; function_exists( &#38;#39;get_post_type_archive_link&#38;#39; ) )
				$trail[] = &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . get_post_type_archive_link( $post_type ) . &#38;#39;&#38;quot; title=&#38;quot;&#38;#39; . esc_attr( $post_type_object-&#38;gt;labels-&#38;gt;name ) . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . $post_type_object-&#38;gt;labels-&#38;gt;name . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;with:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;/* If there&#38;#39;s an archive page, add it to the trail. */
			if ( !empty( $post_type_object-&#38;gt;has_archive ) &#38;amp;&#38;amp; function_exists( &#38;#39;get_post_type_archive_link&#38;#39; ) ){
					if (is_product()){
						$prod_cat = array();
						$prod_cat[] = get_the_term_list(get_the_ID(), &#38;#39;product_cat&#38;#39;);
						$trail[] = $prod_cat[0];
					}else{
						$trail[] = &#38;#39;&#38;lt;a href=&#38;quot;&#38;#39; . get_post_type_archive_link( $post_type ) . &#38;#39;&#38;quot; title=&#38;quot;&#38;#39; . esc_attr( $post_type_object-&#38;gt;labels-&#38;gt;name ) . &#38;#39;&#38;quot;&#38;gt;&#38;#39; . $post_type_object-&#38;gt;labels-&#38;gt;name . &#38;#39;&#38;lt;/a&#38;gt;&#38;#39;;
					}
				}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>Martin from WaldWort digital publishing on "Breadcrumbs glitching... illogical structure"</title>
			<link>http://www.kriesi.at/support/topic/breadcrumbs-glitching-illogical-structure#post-42182</link>
			<pubDate>Fri, 17 Feb 2012 11:45:34 +0000</pubDate>
			<dc:creator>Martin from WaldWort digital publishing</dc:creator>
			<guid isPermaLink="false">42182@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Those breadcrumbs still make no sense ;-)&#60;br /&#62;
I have tried several of the WooCommerce prefix settings, but the main problems do not go away: the dupe (&#34;shop&#34; and the name of the custom post type for Products) in the breadcrumbs and the missing category on product details pages. &#60;/p&#62;
&#60;p&#62;...and for me it is the final glitch so far before I consider my new Abundance-based site to be suitable for visitors. &#60;/p&#62;
&#60;p&#62;soooo - would love to hear how to fix this or see a minor update with breadcrumbs that make sense.&#60;br /&#62;
CSS-related stuff is inconvenient but can usually be easily fixed / customized.&#60;br /&#62;
This however is PHP-related, most likely in some core-files, and clearly a glitch. &#60;/p&#62;
&#60;p&#62;Thanks!&#60;br /&#62;
Martin
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Martin from WaldWort digital publishing on "Breadcrumbs glitching... illogical structure"</title>
			<link>http://www.kriesi.at/support/topic/breadcrumbs-glitching-illogical-structure#post-41844</link>
			<pubDate>Wed, 15 Feb 2012 15:10:01 +0000</pubDate>
			<dc:creator>Martin from WaldWort digital publishing</dc:creator>
			<guid isPermaLink="false">41844@http://www.kriesi.at/support/</guid>
			<description>&#60;p&#62;Heyho, &#60;/p&#62;
&#60;p&#62;not sure if this is a WooCommerce problem or theme-related. &#60;/p&#62;
&#60;p&#62;In any case, the breadcrumbs are a bit weird (on your theme demo as well, so it is not just my problem). &#60;/p&#62;
&#60;p&#62;On shop overview pages they are correct, like Home &#38;gt; Shop &#38;gt; Category&#60;br /&#62;
On product detail pages they are like Home &#38;gt; Shop &#38;gt; Products &#38;gt; Producttitle , and &#34;Shop&#34; and &#34;Products&#34; are both linked to the shop overview. Instead they should be like Home &#38;gt; Shop &#38;gt; Category &#38;gt; Producttitle with linking to the proper storefront and category page. &#60;/p&#62;
&#60;p&#62;Fix?&#60;br /&#62;
Cheers&#60;br /&#62;
Martin
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
