Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to retrieve database info to be used as a drop down list for profile fields?


  • jokyfoot
    Participant

    @jokyfoot

    I want to add user profile fields such as:

    References: (Where the user can choose from a drop down list of existing buddypress members)
    Places Worked: (Where the user chooses from drop down a list of existing locations in the database)

    Is this possible?

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

  • danbp
    Participant

    @danbp

    You can add custom option fields for References and Places Worked:

    Profile → Edit

    Not sure that adding a memberlist as drop down is very clever. What if you get a community of hundreds of members ?

    To get database info, see here: (that’s a common WP task)
    https://codex.wordpress.org/Class_Reference/wpdb


    jokyfoot
    Participant

    @jokyfoot

    True, I’ve realized that to do what I’m trying to do, it wouldn’t be too hard to achieve by simply wrapping an html link tag around each field options.

    The problem I have now is that, each profile field link automatically turns into a members/?s=fieldoption link.

    If someone can tell me how to bypass that I think I’ll be set

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to retrieve database info to be used as a drop down list for profile fields?’ is closed to new replies.
Skip to toolbar