Simple query based on profile data
I’m trying to write a query that would return a simple count of how many users selected a particular option in their profile.
For example, users can choose any number of several favourite colours in their profile:
And I want to be able to insert into a page text along the lines of:
“Purple is the favourite colour of 15 people”
“Blue: 32 fans”
How should I go about doing this? I’ve had a search through the forums and support documentation but I’m not sure where to start.
Set-up: Clean installation of Buddypress 1.2.9 on WordPress 3.2.1, BuddyPress Default 1.2.9 theme.
- The topic ‘Simple query based on profile data’ is closed to new replies.