Forum Replies Created
-
Adding this CSS didn’t work for me, any reason it wouldn’t?
Hmm ok thanks @henrywright-1
On the front end I get:
item-1 £500k-£2m
item-2 £2m+The HTML generated is –
<div id="size500"> item-1 £500k-£2m </div> <div id="size500"> item-2 £2m+ </div>How can I make those divs unique?
Quick question @henrywright-1 – any way to give each of those that are spat out a unique id?
Or do they have to have the same HTML around them?
Ideally, each of the items are wrapped different id – e.g.
<div id="size500">£500K</div>@henrywright-1 it’s added in /wp-admin/users.php?page=bp-profile-setup – Profile Fields under the Users menu in WP Admin.
Your code works, thanks..!
So I can add html into those spaces, and each item is now separated by html…I think that should do it. Thanks so much for the support Team Buddypress 🙂
Thanks for the idea.
Pasting that in (exactly as it is) doesn’t return anything for Budget.
How do I add the HTML I want into:
// put whatever you want hereCheers
Ian
Not sure it’s a custom hack…
In WordPress admin, I go to Profile Fields
Then, I have three profile groups in there. The third one is where this budget field sits.
It’s only available to certain user types, which is why it’s in a separate profile group.
However, as far as I know @bphelp – none of this is custom or a hack, this is standard BP functionality? Then using this snippet to show the output on the front end:
<div id="profileProjectSize"> <?php $data=bp_get_member_profile_data(array('field'=>'Budget')); echo $data; ?> </div>That’s what is strange @bphelp – when I inspect element in Chrome, there are simply no tags around the checkboxes on view profile:

Sorry, meant to put @bphelp
Hi there
Thanks @bp-help for the response. I’m not inspecting on the edit profile page, no, because I am displaying the ‘budget’ information for site visitors.
It’s on the view profile page ( /profile) that I am showing this field using:
<div id="profileProjectSize"> <?php $data=bp_get_member_profile_data(array('field'=>'Budget')); echo $data; ?> </div>If I go to edit profile page, I can see the following for a checkbox:
<label><input type="checkbox" name="field_229[]" id="field_758_0" value="£0-£100k"> £0-£100k</label>How would I get that unique id to show on the view profile page where I am using it?
Hi @bp-help yes I have, there is no id coming through on the checkboxes, they are coming out without any html wrapped around them, eg:
<div id="profileProjectSize"> £0-£100k, £100k-£500k, £500k-£2m, £2m+ </div>I can’t see how to give each one an ID
ThanksThe site is behind a password, anywhere I can DM you?
I just can’t see how to add a unique id to each checkbox.
Thanks,
Ian
Good shout, thanks @henrywright-1
Perfect, hopefully somebody finds this useful!
Realise I am replying to my own thread, but just came across this:
Will resolve this thread if it works.
Sorry to chase, can anybody help clarify this? Thanks again.
Thanks @modemlooper
So the checkboxes for ‘budget’ fall under a third tab within admin:

Would that need something different?
Yes fair point @henrywright-1 – will add some copy for those users too 🙂
For now I have changed the copy on the activate.php page in my theme to make sense. It still works first time a user visits, but if they do it again, they get a page with some copy that helps them. The key field can never be used anyway.
Is there a smarter fix?

Can anyone help me with this one? I know it’s probably really simple but I’m struggling to get this to work.
Thanks
Did this ever get fixed? I’m having this exact issue.
Thanks for the advice @danbp – I have given this a go but really can’t get the code correct.
Sorry to ask again, but with my four check boxes being as follows, can you let me know what to put in that snipped of code for functions.php? These are the checkboxes I have with the title Budget:
- £0-£100k
- £100k-£500k
- £500k-£2m
- £2m+
Thanks,
Ian
Hi @chouf1
Thanks for this, but I don’t really follow. The moneytizer example has really confused me, can you let me know how I could do this if the title of my field is Budget and the four checkboxes are
- £0-£100k
- £100k-£500k
- £500k-£2m
- £2m+
thanks,
Ian
Thanks @danbp – I’m not entirely sure how to create that filter function, can you expand on that?
The four unique names are:
- £0-£100k
- £100k-£500k
- £500k-£2m
- £2m+
thanks,
Ian
My fix above was very specifically for the Reverie theme, I am not sure if this will work for other themes.
Yep, works like a charm 🙂

