Skip to:
Content
Pages
Categories
Search
Top
Bottom

show random profile


  • mrblade
    Participant

    @mrblade

    Hi, i m a new buddypress user 🙂
    I need a page that shows a random profile.
    Maybe i need use bp_the_site_member_random_profile_data()
    but how? if i try to paste it in my page but i have Fatal error: Call to undefined function bp_the_site_member_link()
    thanks!!

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

  • danbp
    Moderator

    @danbp

    bp_the_site_member_random_profile_data doesn’t exist.

    Current version use only
    bp_member_random_profile_data : Output a random piece of profile data for the current member in the loop.
    – or
    xprofile_get_random_profile_data : Fetches a random piece of profile data for the user.

    Find more here.


    mrblade
    Participant

    @mrblade

    Hi! Thank you for your answer!
    But I need a page showing the profile (and not a list) of a random user.
    I was thinking of using the standard loop with type = random and limit of one. And use the filter fields, as described here
    is this the correct way?


    ryanfinke
    Participant

    @ryanfinke

    Hi, did you find a solution? I’m trying to do the same thing.

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