Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to output user ID?


  • r083r7
    Participant

    @r083r7

    How can I output the user ID of each BP profile.

    Is there a BP user ID and a WP user ID? I’m guessing there’s just one WP user ID and BP links to that.

    Basically, I would like to navigate to different BP profiles on my site and have each profile output the user ID for that BP profile on the front end. So I go to John’s profile and see that his user ID is ’45’, I go to Bill’s profile and see on his profile his user ID is ’55’.

    Any ideas on how to output this ID?

Viewing 2 replies - 1 through 2 (of 2 total)

  • Hugo Ashmore
    Participant

    @hnla

    bp_displayed_user_id(); will display the user id on BP screens/loops – but yes user ID’s are WP user ID’s

    The codex though does list basic template tags functions so always check through that first to see if what you need is available.


    Hugo Ashmore
    Participant

    @hnla

    and if you need a code example of how you might do this look at danbp’s reply here:

    Reply To: [Resolved] Display user id

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar