Wendell wrote:I've created a number of custom fields in S2Member, and they all show up publicly on each member's profile. I want the standard BuddyPress fields to show to the public, but I do not want ANY of the S2Member fields to show to anyone except Admins and Editors.
I will be honest first and say that I don't have any experience with buddy press so am not entirely sure what exactly is showing what...
I presume that every user, when logged in, sees the profile pages of everyone else?
And that the profile pages are actually generated by Buddy Press
and that Buddy press has no way to control what is seen or not seen on those profile pages.
I make these presumptions because so far I have never seen wp or s2 show profile info by default.
Then you say...
I still want them to be able to edit the custom fields. But I don't want the public to see their profile fields, as it contains private information that should not be shared with just anyone.
So you want each user to have access to view and edit only their own s2 custom info.
My first thought is that you need to be looking at Buddy Press and not s2 for controlling that display however, if there really is no way to do that you could hide each field based on the user ID.
You would get the current userID and then check that against the user ID dislayed in the profile form. If they are the same you show everything and if they are not the same you hide specific fields.
This thread discusses how to hide a field but you will have to do some additional work:
viewtopic.php?f=4&t=14706#p33206.
DP