• Resolved Marjolijn Harvey

    (@mafgirl)


    Hi, I love your plugin as it is great to have the option for new members to choose groups to join! we have more than 20 groups, far more, is it possible to change the coding of bp-registration-groups.php to allow for ALL groups to show?
    Would be grateful to hear on which line i should alter the code please as I’m not amazing with php and do not want to mess things up 🙂 thank you ever so much!

    Marjolijn

    http://wordpress.org/extend/plugins/buddypress-registration-groups-1/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author hardlyneutral

    (@hardlyneutral)

    The latest version of the plugin will be out tonight. Can you check again and verify if you are still having this issue?

    I’m using the last versione (0.7) – installed 2 days ago – and I have the same problem
    The list of groups stops at 19!
    But I have a little bit more public groups

    What can I do?

    The loop is still cutting off at 20 groups. I looked at the code and can’t figure out why. Any clues?

    Apparently the bp_has_groups loop is paginating after 20. Try this (Around line 31 in the bp-registration-groups.php file).

    <?php $args = array(
         'type' => 'alphabetical',
         'per_page' => 52 /* or whatever number you want */
         ); ?>
    <?php if ( bp_has_groups($args)) : while ( bp_groups() ) : bp_the_group(); ?>
    Plugin Author hardlyneutral

    (@hardlyneutral)

    Updated! Thanks for the tip! Version 0.8 has the per_page set at 99999. I’ll be adding an options page before v1.0 that will allow this to be configured.

    OC2PS

    (@sooskriszta)

    How’s the plan coming along, Eric?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: BuddyPress Registration Groups] How to show more than 20 groups?’ is closed to new replies.