• Resolved tatsuryu

    (@tatsuryu)


    I’m trying to set up a leader boards of different workouts for a karate website. I’ve set is up so that users can enter their record for different exercises in different profile fields.

    How do I collect the information from their profile fields so I can rank the users in a giant list?

    Thanks for your help in advance!

    https://ww.wp.xz.cn/plugins/front-end-only-users/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rustaurius

    (@rustaurius)

    Hi Tat,

    You can try using the user-data shortcode:

    [user-data field_name='record_field_name']

    I’m not sure this will do exactly what you’d want it to do, you could also take the information directly from your database.

    Thread Starter tatsuryu

    (@tatsuryu)

    Okay, that makes sense.

    Really what I’m trying to do is that the user profile has fields like “push ups”, “squats”, “pull ups”, etc. Then after collecting the information, I want to make a table that displays everyone’s numbers.

    So, say I have ten users, I want to make a table that ranks the users by how many push ups they can do. Then I want to display the top three users like :

    Push Ups:

    Danny 112
    Greg 94
    Bob 93

    I know how to get the information ranked, the big problem is that I don’t know how to get the user information for each individual user.

    Thanks!

    Plugin Contributor etoilewebdesign

    (@etoilewebdesign)

    Hi Tat,

    We’ll look into expanding the [user-data] tag so that uses like yours are more easily accomplished. You’d need to go to your database table, and run a select query to get the results based on the “push-up” field ID at this time unfortunately.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Collect Information from Profile fields’ is closed to new replies.