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/
hardlyneutral
Member
Posted 9 months ago #
The latest version of the plugin will be out tonight. Can you check again and verify if you are still having this issue?
grisu59
Member
Posted 9 months ago #
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?
johnsamwallace
Member
Posted 9 months ago #
The loop is still cutting off at 20 groups. I looked at the code and can't figure out why. Any clues?
johnsamwallace
Member
Posted 9 months ago #
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(); ?>
hardlyneutral
Member
Posted 7 months ago #
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.
How's the plan coming along, Eric?