• waseemsoa

    (@waseemsoa)


    Hi
    I am using buddypress and have a xprofile field named”fruits”. This field is a dropdown with options banana, graps, apple, mango. I want a widget on dashboard, in which, total count of the user of banana selected, thus graps selected and so on.

    In simple words, on dashboard there will be 4 columns, named
    1)banana
    2)grapes
    3)apple
    4)mango
    all of them will show total count of the users, who selected them from dropdown.
    How can be this please code me.

    thank you

    • This topic was modified 4 years ago by waseemsoa.
Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It depends on how the profile fields are stored. You basically make COUNT queries for all users with that profile field value. There might be a simpler way with BP functions. I recommend asking in the dedicated support forum for BuddyPress for specific advice.
    https://buddypress.org/support/

Viewing 1 replies (of 1 total)
  • The topic ‘dropdown options counter with toal count of selecting users buddypress’ is closed to new replies.