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 ?
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
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.
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 !!!
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
Take a look at this codex page for an example of gathering user ids based on an xprofile field.
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.
So when the link is clicked, gather the user ids that match that xprofile field – per the example I pointed you to.