Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of hnla

Support: Creating & Extending

Existing and new plugins/components and themes.

BuddyPress Better Pagination – number of groups when using a custom slug (2 posts)

Started 1 year, 5 months ago by: nit3watch

  • Profile picture of nit3watch nit3watch said 1 year, 5 months ago:

    Edit: Sorry, was due to a typo, misplaced a apostrophe when I was bypassing $groups_per.

    Works when I rename it to suit my slug

    @apeatling when using a custom slug, say groups was changed to example and your url would read: http://localhost/wordpress/example/ were you your groups would be listed, limiting the number of groups doesn’t work.

    Ive tried playing around with:

    if ( $groups_per && 'groups' == $bp->current_component )
    return $query_string . '&per_page=.$groups_per';

    renaiming ‘groups’ to example but I get a error:
    Warning: Division by zero in F:Programmesxampphtdocswordpresswp-contentpluginsbuddypressbp-groupsbp-groups-templatetags.php on line 69

    Any idea’s?

  • Profile picture of nit3watch nit3watch said 1 year, 5 months ago:

    @apeatling soz was resolved, error on my side. Corrected it in the above post