Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sq7_extra_fields_members_directory() {
- $location = bp_get_member_profile_data('field=Location');
- $specialization = bp_get_member_profile_data('field=Specialization');
- if ($specialization || $location) {
- echo '<div class="mdetcenter">'. 'Location : ' . $location . '</div>';
- echo '<div class="mdetcenter">'. 'Specialization : ' . $specialization . '</div>';
- }
- }
- add_action('bp_directory_members_item', 'sq7_extra_fields_members_directory');
Advertisement
Add Comment
Please, Sign In to add comment