Re: Trying to Run a if group = “this name”
I haven’t had time to dive into the logic, but it looks quite sound.
What happens when you echo $localNetwork?
Try bp_get_the_site_group_name() instead of bp_the_site_group_name().
When I have some more time, I might give it another shot.
Hopefully someone else can help you out by then!
I’d also recommend getting acquainted with the bp-groups/bp-groups-templatetags.php.
It’s your bible to BP Groups!