Want more features on Pastebin? Sign Up, it's FREE!
Guest

pinstails

By: a guest on Jul 27th, 2010  |  syntax: PHP  |  size: 0.53 KB  |  views: 80  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php if ( have_posts() ) : ?>
  2.   <?php while (have_posts()) : the_post(); ?>
  3.     <?php if( $bp_existed == 'true' ) { //check if bp existed ?>
  4.       <?php do_action( 'bp_before_blog_post' ) ?>                                                              
  5.       <?php locate_template( array( '/library/components/buddypress/buddypress-postloop.php'), true);  ?>
  6.       <?php do_action( 'bp_after_blog_post' ) ?>
  7.     <?php } else { // if not bp detected..let go normal ?>
  8.       <?php locate_template( array( '/library/components/postloop.php'), true); ?>
  9.     <?php } ?>
  10.   <?php endwhile; ?>
clone this paste RAW Paste Data