Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( have_posts() ) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <?php if( $bp_existed == 'true' ) { //check if bp existed ?>
- <?php do_action( 'bp_before_blog_post' ) ?>
- <?php locate_template( array( '/library/components/buddypress/buddypress-postloop.php'), true); ?>
- <?php do_action( 'bp_after_blog_post' ) ?>
- <?php } else { // if not bp detected..let go normal ?>
- <?php locate_template( array( '/library/components/postloop.php'), true); ?>
- <?php } ?>
- <?php endwhile; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement