Is this the right syntax
I’m trying to run a query through the bp_has_groups using the output of the_title() to match a slug.
Been trying to use this, also tried assigning it to a variable but no luck.
<?php if ( bp_has_groups( ‘type=single-group&slug=’ . the_title() ) ) : ?>
Any ideas as I really need some help with this tbh.
Cheers in advance
- The topic ‘Is this the right syntax’ is closed to new replies.