Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 12 years ago

Last modified 3 months ago

#4369 closed defect (bug) (no action required)

Buddy Press Functions returning blank

Reported by: miasua's profile miasua Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.5.6
Component: Core Keywords:
Cc:

Description

I believe this is a bug, please excuse if this should be in support.

The function I currently am using is <?=bp_get_member_user_email()?>. On pages with buddypress components this returns an email address no problem, but other pages I receive an empty string.

Change History (1)

#1 @DJPaul
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

bp_get_member_user_email() is a Members template loop function, which means it will only work inside of the bp_has_members() loop. Outside of it, no value will be set so it will return zero.

If you need help finding an equivalent function, please post a message on our support forums detailing where you are trying to use it, and I'll take a look.

Note: See TracTickets for help on using tickets.