BP Profile Search › BP search. Date selector not showing on form
-
AuthorPost
-
Carsten
GuestHi Andrea.
Please see the picture.

I have Version 5.3.2 installed. But it already happened in Version 5.3
And I can’t change the age range either. Edit profile field! “Date selector”
Best regards Carsten.
andrea
Plugin AuthorHi Carsten,
If you were using the code suggested in:
https://dontdream.it/bp-profile-search/form-templates/
that code has changed a little in version 5.3, please have a look at that page to see the current version.
Carsten
GuestHi Andrea.
Issue fixed, after my theme posted a new update. Regarding the picture, above!
I still have a issue, setting the date range.
Even if I use your snippet!
———————————————————————–
add_action (‘bps_field_before_search_form’, ‘change_display’);
function change_display ($f)
{
if ($f->code == ‘field_4’ && $f->display == ‘integer-range’)
{
$f->display = ‘range-select’;
$range = range (18, 99);
$f->options = array (” => ”) + array_combine ($range, $range);
}
}
————————————————————————-
Could it be another plugin? there is causing this issue..or would it help to modifying the default form template? I have just installed a child theme!Best regards Carsten.
andrea
Plugin AuthorHi Carsten,
How does your search field appear right now (e.g. two input boxes)?
Carsten
GuestHi Andrea.
Like in the picture:
https://filipinowomen.online/wp-content/uploads/2020/03/search-field-4.jpg
Best regards Carsten.
andrea
Plugin AuthorAnd what would you like to change?
Carsten
GuestI would like to set the age range, from 18 to 90, thanks 🙂
andrea
Plugin AuthorSorry, I didn’t notice the current range starts from 19 🙂
Well, if you didn’t set the range, probably the settings are elsewhere, say in your theme or in your profile field. Did you look there? And anyway the question is, who is setting the current range right now? BP Profile Search doesn’t set any range by itself.
Carsten
GuestThat’s the issue, I wanna set the age range from 18…But I can’t change the age range, at all. Every time I try to set it. It returns the same value. I have even tried to create a new field, but with the same results. See picture –
https://filipinowomen.online/wp-content/uploads/2020/03/profile-field-id-frozen.jpg. It’s like, it doesn’t want to be updated! Stuck on the same value, no matter what I do.Best regards Carsten. 🙂
andrea
Plugin AuthorHi Carsten,
If you wish, I could have a look at your site or test site. I’ll need a WP admin access, you can use my Contact page to share it privately.
Carsten
GuestHi Andrea.
Thanks for always responding and trying to help. 🙂 and thank you, but that will not be necessary. Because I just found the issue and of course, it’s a plugin.
The “BuddyPress Xprofile Custom Field Types plugin” is causing the issue. If you deactivate it. Change the age range in the field settings and then activate it again. It keeps the settings. So in the future, you’ll have to deactivate this plugin, to change the settings and then afterwards, activate it again! I will report the bug to byddydev, later.
Sorry for the inconvenience.
Best regards Carsten. 🙂
andrea
Plugin AuthorHi Carsten,
No problem, glad you found the solution!
-
AuthorPost