Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Is this the right syntax


chrisknade
Participant

@chrisknade

Basically im trying to take the title of the page which matches my group slugs and get the info from the groups. trying to make the page completely dynamic. In the content of the whole thing the codes like this.

<?php if ( bp_has_groups( 'type=single-group&slug=' . the_title() ) ) : ?>

<dl class="featured_network_info">
<?php while ( bp_groups() ) : bp_the_group(); ?>

<!-- Example template tags you can use -->

<dt><a href="<?php bp_group_permalink() ?>"></a></dt>
<dd class="featured_title"><?php bp_group_name() ?></dd><?php bp_group_avatar_thumb() ?>
<dd class="featured_members">Members : <?php bp_group_total_members() ?></dd>
<dd> <?php bp_group_description_excerpt() ?></dd>

<?php endwhile; ?>
</dl>

<?php else: ?>

<div id="message" class="info">
<p>There are no groups to display.</p>
</div>

<?php endif; ?>

But I can’t get any output from anything.

Skip to toolbar