Guest User

breadcrumb fix for bbpress

a guest
Nov 6th, 2012
57
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if ( is_home() ) { ?>
  2. <img src="<?php bloginfo('template_directory'); ?>/images/headers/masthead.jpg" />
  3. <?php } ?>
  4.  
  5. <?php if ( ( is_category() && ! is_bbpress() ) || ( is_single() && ! is_bbpress() ) || ( is_author() && ! is_bbpress() ) ) { ?>
  6. <a href="/home/"><img src="<?php bloginfo('template_directory'); ?>/images/headers/header.jpg" /></a>
  7. <div id="breadcrumb"><?php the_breadcrumb(); ?></div>
  8. <?php } ?>
  9.  
  10. <?php if ( is_bbpress() ) { ?>
  11. <a href="/home/"><img src="<?php bloginfo('template_directory'); ?>/images/headers/header.jpg" /></a>
  12. <div id="breadcrumb"><?php bbp_breadcrumb(); ?></div>
  13. <?php } ?>
RAW Paste Data