Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Custom members directory breaks pagination

@designfirm

Participant

Hi Boone,

Thanks for the response. The “no-ajax” class did load users on subsequent pages, but I’m still experiencing other odd behavior:

If I have the &per_page argument like this: `
<?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ) . ‘&page_arg=bapage&per_page=10’ ) ) : ?>` I receive no members on the first page, and two members on the second page if the filter is set to “newest registered” or “last active”. If it’s set to “alphabetical”, one member shows up on the first page, none on the second page, and one on the third page.

If I remove the &per_page argument, I get both members on the first page for “newest registered” and “last active.” For “alphabetical”, I get one member on the first page, and one on the second.

I’m using the social buddy theme. It’s set up like this:

socialbuddy/buddypress/
ajax.php
functions-buddypress.php
global.js
style-buddypress.css

socialbuddy/members/
index.php
members-loop.php
single/(a bunch of files)

I’ve added bloggers.php, which is a modified members’ index.php that I’m using as my page template, to the main “socialbuddy” folder. I changed the locate_template() function so that it uses my modified members-loop: members-loop-bloggers.php, which I’ve placed in the “members” folder.

Thanks for any insight you can provide.

Regards,
Scott

Skip to toolbar