How to display the title at the end of the breadcrumb? I would like the page title to be displayed as a part of the breadcrumb, at the end of the preceding path.

I've got the following code.

&lt;div id="breadcrumbs"&gt;&lt;span class="bread_crumbs"&gt;&lt;?php print $breadcrumb; ?&gt;&lt;?php print $title; ?&gt;&lt;/span&gt;&lt;/div&gt;


I have checked the following option in appearance/settings: Append a separator to the end of the breadcrumb.

If the page is a top level page, the breadcrumb displays correctly; however, for any further level pages, the title doesn't display, but just the previous path.

How do I change this to get it to work?

This is what I would like to do: Adding the page title next to the breadcrumb.

I've now got the following code.

&lt;div id="breadcrumbs"&gt;&lt;span class="bread_crumbs"&gt;&lt;?php print $breadcrumb . $title; ?&gt;&lt;/span&gt;&lt;/div&gt;


The page title only displays for top level pages. If a page has parents, then the title doesn't get displayed. I've cleared the cache, but still no luck.
In template.php of your theme folder you can do this:

This is for changing the seperator or overriding the already available breadcrumb:

function mytheme_breadcrumb($variables) {
  $sep = ' &amp;gt; ';
  if (count($variables['breadcrumb']) &gt; 0) {
    return implode($sep, $variables['breadcrumb']) . $sep;
  }
  else {
    return t("Home");
  }
}


For adding title of page next to the breadcrumb you simply do this.

In page.tpl.php of your theme folder:

&lt;div class="breadcrumb"&gt;&lt;?php print $breadcrumb . $title; ?&gt;&lt;/div&gt;


[Alternative Answer]:

If you dont want to do with custom code then you can try this module(Menu Breadcrumb) which will have option for adding page title at the end of breadcrumb.

In the configuration of this module you need to check this option for getting page title use menu the page belongs to the breadcrumb

Module Name is Menu Breadcrumb