Forum Replies Created
-
We discussed it here: https://buddypress.org/support/topic/dont-hide-fields-when-user-views-his-own-profile/, but I got stuck. Maybe I’ll revisit.
Yes I have data. I’ve tried switching themes and disabling all other plugins.
A bit frustrating. I have a lot of fields. That couldn’t be an issue could it?This was supposed to be an alternative to the user profile page. I’m merely trying to get all fields to show, regardless of whether there’s data or not. I tried in vain to modify the profile page.
Any more suggestions?
Okay. Please check this: http://pastebin.com/uxLZJHfr
If you want to see the result, register at http://actiontakers.org
then go to http://actiontakers.org/my-dashboard/Can I get an answer to my original question?
I can display field labels, but not data.Actually – looks like the problem might be with bp_the_profile_field_value(). I’m able to display all the fields with labels, but no values.
Okay – discovered that the overload file needs to be in wp-content/themes/buddyboss-child/buddypress/members/single/profile and verified it by making a random change to the file, but I’m still not seeing fields without values.
PS For some reason, the system won’t allow me to paste the code.
Thanks for the quick response, but doesn’t seem to be working for me. I created the template overload of profile-loop.php and stored it in wp-content/themes/buddyboss-child/buddypress/bp-templates/bp-legacy/buddypress/members/single/profile. I’ve pasted the entire file below after modification.
I can’t find it now, but there was a thread somewhere that indicated that the following line needed to be changed in bp-xprofile-template.php so was wondering what you thought of that.
$hide_empty_fields_default = ( ! is_network_admin() && ! is_admin() && ! bp_is_user_profile_edit() && ! bp_is_register_page() );Anyway, here’s my profile-loop.php:
`You’re right – the problem was my custom theme.
Thanks!