Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: bp_get_field_data no longer working


Burt Adsit
Participant

@burtadsit

The reason you are getting nothing is that $user is not a global var in that template. I was getting nothing because of a bug. Specify the user var like this:

<?php
global $site_members_template;
xprofile_get_field_data(\"City\",$site_members_template->member->id);
?>

That is the current template user id. There is no template tag to just get the current template loop user id yet.

Skip to toolbar