-
losted replied to the topic Using bp_group_has_members in the forum How-to & Troubleshooting 10 years, 11 months ago
Sure Hugo, in fact my sample of code is working. It wasn’t with an ‘init’ action, but with ‘bp_init’ it is working… I pasted the code before realizing that it was actually working..
-
losted replied to the topic Using bp_group_has_members in the forum How-to & Troubleshooting 10 years, 11 months ago
Problem Solved!
-
losted started the topic Using bp_group_has_members in the forum How-to & Troubleshooting 10 years, 11 months ago
Hello guys, I’m having an error with this simple sample of code :
function test() {
if ( bp_group_has_members( 'group_id=2' ) ) {
echo "SOME MEMBERS";
} else {
echo "NO MEMBER";
}
}
add_action('bp_init', 'test');The error I get is :
[28-May-2013 17:59:37 UTC] WordPress database error Table ‘buddytest.m’ doesn’t exist for query SELECT…[Read more]
@losted
Active 11 months ago