I've created a new home template for my buddypress groups called front.php. With the code below, I've attempted to display the content of a wp page whose name corresponds to the group name. The loop I have below is in fact displaying pages. But instead of displaying the content of only the corresponding page, it is displaying the content of ALL pages with names that correspond to bp groups. What am I missing?
<?php $args = array( 'post_type' => 'page', /*'pagename' => bp_the_group()*/ );
query_posts( $args ); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="post">
<h1><?php the_title(); ?></h1>
<div class="entry">
<?php the_content(); ?>
</div>
<?php edit_post_link( __( '{ Edit }', 'woothemes' ), '<span class="small">', '</span>' ); ?>
</div>
<?php endwhile; ?>

WOO Themesa support forum for stuff like this? – kaiser Feb 20 '12 at 14:15bp_is_item_mod()andbp_is_item_admin()functions. – Joseph Feb 20 '12 at 15:05