Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Is this the right syntax


chrisknade
Participant

@chrisknade

Im not trying to use the group title, im trying to use the page title.

Basically if I’ve got a page called page1 I want to retrieve the group details for the group called page1. I’m trying to do it dynamically because I want to use the same template instead of making up 50 odd templates for this particular project.

I can get it to work if I pass in the slug as a string ie just

`<?php if ( bp_has_groups( ‘type=single-group&slug=page1’) ) : ?>

Chris

Skip to toolbar