Advertisement
Guest User

amended code

a guest
Jun 30th, 2011
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. if ( function_exists('register_sidebar') )
  2. register_sidebars(2);
  3. ?>
  4. <?php
  5. function the_breadcrumb() {
  6. global $post;
  7. if ( !is_home() ) {
  8. echo '';
  9. bloginfo('name');
  10. echo "&raquo;";
  11. if ( is_category() || is_single() ) {
  12. the_category(', ');
  13. if ( is_single() ) {
  14. echo "&raquo;";
  15. the_title();
  16. }
  17. } if ( is_page() && $post->post_parent ) {
  18. echo 'post_parent' . '">';
  19. echo get_the_title($post->post_parent) . ";
  20. echo "&raquo;";
  21. } if ( is_page() ) {
  22. echo the_title();
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement