Profile fields to appear in directory
-
Hi all!
I’m building my new site (www.sostenibl.es) using WordPress v.4.8.2 and Buddypress v.2.9.1
Currently, the members directory displays members’ names and last activity. But I want some profile fields to appear in the BP directory page instead.
I’ve found a proposed solution in the forum, but it’s not working, and I do not know what I am doing wrong –needless to say that I have no coding experience whatsoever!
Following other entries in this forum, I was trying to modify the members-loop.php located at bp-templates/bp-legacy. I found the section “if you want to show specific profile fields….”, and added the line: bp_member_profile_data( ‘field=la-empresa’ ).
However is not working.I tried making changes to members-loop.php located at bp-themes/bp-default, just in case 🙂 ; but did not work either.
I also tried this: <?php bp_member_profile_data(array(‘field’ => ‘la-empresa’)); ?>
No results 🙁I tried also to use the field id instead of the field name. But it’s not working either.
I am confused with the field name thing, and I am at a point where I don’t know where to find the field name unless it’s the name that I gave to the field (field name I gave has spaces e.g “la empresa”)I am really lost and do not how to get this to work. Please help!!
Thanks in advance!
- You must be logged in to reply to this topic.