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?
You must be logged in to reply to this topic.