Advertisement
Guest User

pinstails

a guest
Jul 27th, 2010
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  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; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement