@pynet
1 year, 10 months ago
Ok, I fixed it, there was a function that returned an array instead of a string. In case anyone is interested: $client_id= get_post_meta($post_id, ‘_sliced_client’, true); Regards
No one?
1 year, 11 months ago
Hello again, My customer now wants to filter members by zones, so I have created two different profile fields: for suppliers Zone1, for customers Zone2. Suppliers may have one or more zones, customers only one (that’s why creating two different profiles). I have tried to combine the code here https://buddydev.com/show-only-users-of-opposite-genders-on-buddypress-site/ with this other https://buddydev.com/support/forums/topic/filter-the-buddypress-members-in-the-list-of-members/, but I can’t find the way to make it work, neither including it inside the class nor from outside. Any idea? Thank you very much. Greetings and happy holidays!
2 years ago
Oh, that’s great! It works perfectly. Thank you so much!