Skip to:
Content
Pages
Categories
Search
Top
Bottom

Simple query based on profile data


  • notpoppy
    Participant

    @notpoppy

    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:

    Red
    Green
    Blue
    Yellow
    Purple

    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”
    etc…

    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.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Simple query based on profile data’ is closed to new replies.
Skip to toolbar