Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to list extended profile fields


  • wrify
    Participant

    @wrify

    I created an extended profile field and used a drop down box for its choices (5). How can I list the 5 choices of the extended profile field?

    Thank you

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

  • shanebp
    Moderator

    @shanebp

    If a user selected a choice and saved, it will show up on their profile.

    Why would you want to list all 5 possible choices?

    Where do you want to list them ?


    wrify
    Participant

    @wrify

    Thank you for your reply. Maybe I didn’t explain myself well or maybe I am using the wrong approach.

    What happens is as follows:

    I have a set of categories listed on a page. These categories are for content purposes. Click on a category and get the list of post under that category. Just a regular WordPress thing.

    However, I need to do the same thing for type of users.

    For example:

    Under arts, I list categories as Arts, Photography, News etc. (These are for content)

    But the I need to list Artists, Photographers, Galleries (These are for users)

    Thanks,
    Joe


    wrify
    Participant

    @wrify

    Has anyone found a solution to this?

    Basically is as follows:

    Profile fields > Base (Primary) > Category

    Then, field type is a drop down with options

    I just need to list those options in a frontend page, click on it and get the members for that option.


    shanebp
    Moderator

    @shanebp

    This will require good coding skills. You may need to hire a developer. Or maybe somebody will be willing to create the code for you.

    To any devs: BP 2.2 will include ‘BP_XProfile_Query‘ to make these kinds of tasks much easier !!!


    wrify
    Participant

    @wrify

    Hello Shanebp,

    I can code it myself. I am a developer but fairly new to buddy press. Just need to know more about BP codex and any specific function to use. I was lookig into the BP_XProfile_Query but got cought up with other tasks at the time. I will look further into it. If you know w bit more about specific codes to use, I appreciate it.

    Thanks,
    Joe


    shanebp
    Moderator

    @shanebp

    Take a look at this codex page for an example of gathering user ids based on an xprofile field.


    wrify
    Participant

    @wrify

    Thanks Shane,

    Problem is there is no user id yet. All I’m doing is listing the available options from a based field in a frontpage page and linking it. When the link is clicked, the members with that option are to be displayed.


    shanebp
    Moderator

    @shanebp

    So when the link is clicked, gather the user ids that match that xprofile field – per the example I pointed you to.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to list extended profile fields’ is closed to new replies.
Skip to toolbar