Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Trying to Run a if group = “this name”


r-a-y
Keymaster

@r-a-y

<?php $localPhone = bp_get_the_site_group_name() ?>;

Remove the semi-colon from the end and that will get rid of the echo problem.

I assume you meant:

<?php $localPhone = bp_get_the_site_group_name(); ?>

The if statement should be:

<?php if ( ($localPhone=="Manchester") || ($localPhone=="Test Group") ) {

Skip to toolbar