Can't print breadcrumb I'm trying to move the breadcrumb from one part of my theme to another, and they have different template files (using an Omega subtheme). $breadcrumb seems to be an array. I've tried l($breadcrumb) and theme($breadcrumb) to no avail. How do you print out a properly themed and string-ified breadcrumb in a template?

Here's my code btw.

&lt;?php 
function rescue_breadcrumb($variables) {
    $breadcrumb = $variables['breadcrumb'];
    if (!empty($breadcrumb)) {
    $crumbs = '&lt;ul class="breadcrumbs"&gt;';
    foreach($breadcrumb as $value) {
       $crumbs .= '&lt;li&gt;'.$value.'&lt;/li&gt;';
       }
       $crumbs .= '&lt;/ul&gt;';
    }
      return $crumbs;
  }
$breadcrumb = drupal_get_breadcrumb();
if ($breadcrumb): ?&gt;
  &lt;div id="breadcrumb" class="grid-&lt;?php print $columns; ?&gt;"&gt;&lt;?php print $breadcrumb; ?&gt;&lt;/div&gt;
&lt;?php endif; ?&gt;
theme_breadcrumb() would probably be the best choice:

print theme('breadcrumb', array('breadcrumb' =&gt; $breadcrumb));


It expects the breadcrumb variable to be an array, each item of which makes up one part of the breadcrumb trail. So this array:

$breadcrumb[] = l('Home', '&lt;front&gt;');
$breadcrumb[] = l('Page', 'page');
$breadcrumb[] = l('Subpage', 'page/subpage');


will produce:

Home &gt; Page &gt; Subpage


You can also use plain text instead of links for the breadcrumb items in case you need to.