Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to paginate with bp_user_query?


  • enderpal444
    Participant

    @enderpal444

    I couldn’t find any documentation on bp_user_query. How are we paginating a list of users with this? Does it accept the paged parameter?

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

  • Paul Wong-Gibbs
    Keymaster

    @djpaul

    Use bp_has_members(). The BP_User_Query class is low level and handles querying the database; you probably don’t need to use it directly if you want to create a paginated users lists,


    enderpal444
    Participant

    @enderpal444

    @djpaul Ok because I just thought I was reading about how it was built to scale and I’m dealing with alot of users and large lists.


    enderpal444
    Participant

    @enderpal444

    Also Im using parameters from the posts 2 posts plugin and meta_key for others which the codex doesn’t seem to allow for bp_has_members()


    Paul Wong-Gibbs
    Keymaster

    @djpaul

    bp_has_members() support this. The codex is (probably) out of date. Probably best to read the code itself

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to paginate with bp_user_query?’ is closed to new replies.
Skip to toolbar