Advertisement
mendes8010

Função breadcrumble

Feb 15th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. function el_camino() {
  2.     if (!is_home()) {
  3.         echo '<a href="';
  4.         echo get_option('home');
  5.         echo '">';
  6.         bloginfo('name');
  7.         echo "</a> » ";
  8.         if (is_category() || is_single()) {
  9.             the_category('title_li=');
  10.             if (is_single()) {
  11.                 echo "» ";
  12.                 the_title();
  13.             }
  14.         } elseif (is_page()) {
  15.             echo the_title();
  16.         }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement