Querying specific groups based on parameters
-
I needed to fetch the group avatar, group permalink and group description on the basis of “slug” or “id” (if by slug is not possible)….
I tried using The Groups Loop / bp_has_groups(), since it shows that i can pass slug as a parameter…. but it doesn’t seem to work for me…. can someone tell me whats going wrong?
a. the value of slug that I will be passing in bp_has_groups has to be a variable…. $slug_params for it to solve my purpose.
b. I tried using bp_has_groups(‘slug = $slug_params’), (‘slug = “$slug_params”‘), even tried removing the $slug_params and replacing it with a fixed value put under quotes….none of it seems to work for me….What is it that I am missing out here?
- The topic ‘Querying specific groups based on parameters’ is closed to new replies.