Skip to:
Content
Pages
Categories
Search
Top
Bottom

User ID empty on front page, template tags return null

Viewing 2 replies - 1 through 2 (of 2 total)
  • bp_displayed_user_avatar only works when used somewhere in a BuddyPress member loop, e.g. on a particular member’s profile pages, or in the member directory.

    Do you perhaps want the logged-in user’s avatar? Use bp_loggedin_user_avatar instead (no need to call get_currentuserinfo() for it).


    Pascal Birchler
    Participant

    @swissspidy

    Thank you for your fast reply!

    `bp_loggedin_user_avatar()` did the trick and works perfectly. I also found the other correct functions in the docs.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘User ID empty on front page, template tags return null’ is closed to new replies.
Skip to toolbar