Reply To: [Resolved] Showing posts by groups
ok, ignore my last post. i just figured out that you can obtain the members ids with:
$authors = BP_Groups_Member::get_group_member_ids (ID_OF_GROUP_YOU_WANT);
then i was trying to turn that array into string and put it into query by authors, but it seems not to work since its supposed to be used with int value.
i was trying something like this:
$authorsgroup = implode(',', $authors);
$posts = "'" . "author=" . $authorsgroup . "'";
$the_query = new WP_Query( $posts );
…no luck…
$authorsgroup = implode(',', $authors);
$the_query = new WP_Query( 'author='$authorsgroup'' );
… no luck …
etc….
have you got some idea how to put that ids into the query?