Page crumbs

What is bread crumbs? Bread crumbs are usually used to show the position of the page in the site, so that visitors will not lose their way, such as: Home » Journal » Hello World

In the blog, let's see which paths will appear:

home page » Latest articles
home page » Classification name » Article Title
home page » Archive year » Archive month
home page » Page name
home page » Classification name
home page » Label name
home page » Search for keywords or other information

Underlined text represents a link

In fact, the content in the title can be directly transplanted to our bread crumbs. Maybe you need to review the following code before looking at it Magic is syntax

 <div class="crumbs_patch"> <a href=" <? php  $this -> options -> siteUrl ( ) ;  ?> ">Home</a> &raquo;</li> <? php  if  ( $this -> is ( 'index' ) ) :  ?> <!--  When the page is the first page --> Latest Post <? php  elseif  ( $this -> is ( 'post' ) ) :  ?> <!--  When the page is a single page of an article --> <? php  $this -> category ( ) ;  ?> &raquo; <? php  $this -> title ( )  ?>
	 <? php  else :  ?> <!--  When the page is another page --> <? php  $this -> archiveTitle ( ' &raquo; ' , '' , '' ) ;  ?>
	 <? php  endif ;  ?> </div>

Place the above code on the page to be displayed, such as index.php, post.php, or header.php. After saving, you can view the results. Of course, don't forget to customize the style.

Print/Export
language
  ?