Re: Is this the right syntax
I still don’t quite get it, but I’ll assume that you’re trying to pull up group information that has the same Group Name as the Page Title?
If so, does that mean you’re creating a page for each group manually? Ugh, no fun… Alas, this is what I would do, within ‘the loop’…
$group_page_title = the_title('', '', false);
<?php if ( bp_has_groups( 'type=single-group&slug=' . $group_page_title ) ) : ?>
And then proceed? I haven’t tested it, so no promises…
(The call to the_title could also probably just reference a $post-> variable, but I don’t remember what the title is off the top of my head.)