<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>Breadcrumb Problem</title>
        <link>https://interactivetools.com/forum/forum-posts.php?Breadcrumb-Problem-80202</link>
        <description></description>
        <pubDate>Sun, 08 Nov 2026 04:39:00 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;Breadcrumb-Problem-80202" rel="self" type="application/rss+xml" />

                <item>
          <title>Breadcrumb Problem</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2237304#post2237304</link>
          <description><![CDATA[<p>Hi Ragi,</p>
<p>Your code seems like it is for displaying only the top level menu or the selected parent menu.</p>
<p>Do you mind if I take a closer look by submitting a second level support request?</p>
<p>You can find the form here: <a href="https://www.interactivetools.com/support/email_support_form.php" rel="nofollow">https://www.interactivetools.com/support/email_support_form.php</a></p>
<p>Thanks,</p>]]></description>
          <pubDate>Fri, 04 Sep 2015 08:53:02 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2237304#post2237304</guid>
        </item>
                <item>
          <title>Breadcrumb Problem</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2237288#post2237288</link>
          <description><![CDATA[<p>Daryl:  Yes, it is a multiple menu record.  I tried both suggestions, and both only list the top level menu, Home.</p>]]></description>
          <pubDate>Tue, 01 Sep 2015 12:58:00 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2237288#post2237288</guid>
        </item>
                <item>
          <title>Breadcrumb Problem</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2237286#post2237286</link>
          <description><![CDATA[<p>Hi northernpenguin,</p>
<p>Is the $categoryRecord in line 2 of breadcrumb.inc a multiple menu records or just a single record of a menu?</p>
<p><code>$categoriesRecordsByNum = array_combine(array_pluck(<strong>$categoryRecord</strong>, "num"), <strong>$categoryRecord</strong>);</code></p>
<p>Base on your code, I'm assuming that $categoriesRecordsByNum should be a multiple menu records with the record num as the array keys. So can you try to replace the line 2 of  breadcrumb.inc with:</p>
<p><code>$categoriesRecordsByNum = array_combine(array_pluck(<strong>$menuRecords</strong>, "num"), <strong>$menuRecords</strong>);</code></p>
<p>Or with using array_groupBy function:</p>
<p><code>$categoriesRecordsByNum = array_groupBy($menuRecords, 'num');</code></p>
<p>Please let us know if that works.</p>
<p>Thanks,</p>]]></description>
          <pubDate>Tue, 01 Sep 2015 11:12:12 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2237286#post2237286</guid>
        </item>
                <item>
          <title>Breadcrumb Problem</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2237284#post2237284</link>
          <description><![CDATA[<p>I am having a bit of a problem getting breadcrumbs to work properly on my site.  I found some code in the forum that looked like it might work, so I tried it on a test page.  I am down to one Warning, which I can't figure out how to solve.  Can anyone help?</p>
<p>I get the following warning message</p>
<p><code>Warning: array_combine(): Both parameters should have an equal number of elements.... (it refers to line 2 in breadcrumbs.inc below)</code></p>
<p>Below is my menu.inc</p>
<p><code>     &lt;ul class="sf-menu"&gt;<br />        &lt;?php foreach ($menuRecords as $categoryRecord): ?&gt;<br />          &lt;?php echo $categoryRecord['_listItemStart'] ?&gt;<br /><br />       &lt;?php if ($categoryRecord['_isSelected'] &amp;&amp; !$categoryRecord['new_page']): ?&gt;<br />            &lt;b&gt;&lt;a href="&lt;?php echo $categoryRecord['filename'] ?&gt;" blank="_target"&gt;&lt;?php echo $categoryRecord['name'] ?&gt;&lt;/a&gt;&lt;/b&gt;<br />          &lt;?php else: ?&gt;<br />            &lt;a href="&lt;?php echo $categoryRecord['filename'] ?&gt;"&gt;&lt;?php echo $categoryRecord['name'] ?&gt;&lt;/a&gt;<br />          &lt;?php endif; ?&gt;<br /><br />          &lt;?php echo $categoryRecord['_listItemEnd'] ?&gt;<br />        &lt;?php endforeach; ?&gt;<br />      &lt;/ul&gt;<br /><br />    &lt;?php if (!$selectedMenu): ?&gt;<br />      No category is selected!&lt;br/&gt;<br />    &lt;?php endif ?&gt;<br /></code></p>
<p>Here is the breadcrumb.inc</p>
<p><code>&lt;?php<br /><span style="color:#ff0000;">$categoriesRecordsByNum = array_combine(array_pluck($categoryRecord, "num"), $categoryRecord);</span><br /><br />$lineage = explode("\t", trim(preg_replace("/:/", "\t", $selectedMenu['lineage'])));<br /><br />$parents = array();<br />foreach ($lineage as $parentCatNum) {<br />$parents[] = $categoriesRecordsByNum[$parentCatNum];<br />}<br />?&gt;<br /><br /><br />&lt;?php foreach($parents as $parent): ?&gt;<br />&lt;ul class="breadcrumblist"&gt;<br />&lt;span&gt;&amp;rsaquo;&lt;/span&gt;<br />&lt;?php if ($parent === $selectedMenu): ?&gt;<br />&lt;li class="breadcrumbItem"&gt;&amp;nbsp;/&amp;nbsp;&lt;?php echo $parent['name'] ?&gt;&lt;/li&gt;<br />&lt;?php else: ?&gt;<br />&lt;li class="breadcrumbItem"&gt;&amp;nbsp;/&amp;nbsp;&lt;a href="&lt;?php echo $parent['_link'] ?&gt;"&gt;&lt;?php echo $parent['name'] ?&gt;&lt;/a&gt;&lt;/li&gt;<br />&lt;?php endif ?&gt;<br />&lt;/ul&gt;<br />&lt;?php endforeach ?&gt;<br /></code></p>
]]></description>
          <pubDate>Sat, 29 Aug 2015 04:47:38 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2237284#post2237284</guid>
        </item>
              </channel>
    </rss>
  