bp_get_member_user_id() in header
-
Hi all – for some reason, I’m completely unable to use bp_get_member_user_id() in the header.php file of my bp-default theme.
I need to pull logged in user ids to show them navigation based upon their xprofile fields, but bp_get_member_user_id() won’t generate anything in the header.
If I put it in the footer, it works, and I can store it as a variable, but since the header navigation loads first, it doesn’t show the right content.
How can I successfully generate a logged in member’s user id in the header?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘bp_get_member_user_id() in header’ is closed to new replies.