-
Author
-
December 8, 2015 at 23:20 #91985monkeytoldmeParticipant
Hello,
On Kleo I have 5 profile field groups, each with a couple fields. I am trying to display the ‘school’ field in the field group: education, how would I do this? Here is the code I am using:
$field_content = bp_get_member_profile_data( ‘field=field name goes here’ );
December 9, 2015 at 00:52 #92005sharmstrModeratorWhat the code is doing is assigning it to a variable, not displaying it. Buddyrpess has a helper function that will auto echo it for you.
COPY CODEbp_member_profile_data('field=field name goes here');
If you dont want to echo it right way and then use the code that you have, then echo it when you want…
COPY CODEecho $field_content;
For further questions, please refer to the buddypress documentation and ask on their forums.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 9, 2015 at 01:22 #92012monkeytoldmeParticipantYes….I know that.
What would I enter for my field name though, is what I am asking. Like for the field= what would I put in there.
December 9, 2015 at 01:35 #92017sharmstrModeratorschool. That’s your field name, right?
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 9, 2015 at 03:02 #92024monkeytoldmeParticipantYes, but it is in the field group education. So nothing happens if I just enter ‘school’
December 9, 2015 at 03:18 #92028sharmstrModeratorIt doesnt matter what group its located in.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
December 9, 2015 at 03:25 #92029sharmstrModeratorGlad you got it working.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionThis support site is not about custom work. If you need custom development please contact cornel@seventhqueen.com
-
AuthorPosts
The forum ‘General questions’ is closed to new topics and replies.