[wp-hackers] Get Buddy Press Profile Data outside a post loop (via userID)
Erick Hitter
ehitter at gmail.com
Fri Jun 24 04:06:34 UTC 2011
I was mistaken. The function is bp_get_profile_field_data, which accepts an
array as its only argument. Supplying array keys *field* and user_id, where
field is the numeric field ID, will return the corresponding database entry.
For example: bp_get_profile_field_data( array( 'field' => 1, 'user_id' =>
$user_id ) );
Erick
On Thu, Jun 23, 2011 at 23:27, Erick Hitter <ehitter at gmail.com> wrote:
> If memory serves, the function you're looking for is bp_get_profile_info.
> It's either located on the core BuddyPress files or somewhere in the
> xprofile files. I can get the exact function reference for you later
> tonight, though a grep through the BuddyPress files may reveal what you
> need.
>
> Erick
> On Jun 23, 2011 6:30 PM, "Andrew Gray" <andrew at graymerica.com> wrote:
> > I am trying to use the data I have stored in Buddypress user profile as
> part of a custom post type loop.
> >
> > I can get the author's name/ID/etc and other wordpress functions with "
> <?php the_author_meta( 'ID' ); ?> "
> >
> > Is it possible to get buddypress profile information by using a function
> like this, and the userID? bp_get_member_profile_data()
> >
> > I am trying to connect the profile data to the post.
> >
> > thanks,
> >
> > Andrew
> >
> >
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list