Title: Edit Small Groups
Last modified: August 21, 2016

---

# Edit Small Groups

 *  Resolved [Gustavo Viegas](https://wordpress.org/support/users/gustavorviegas/)
 * (@gustavorviegas)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/edit-small-groups/)
 * First I want to congratulate the great work …
 * I’m having trouble editing the leaders of small groups.
 * I only get when I’m adding members, put him as leader of a new group.
 * But to go in managing small groups I visualize the leaders, but when I edit the
   group the field does not appear ..
 * I tried to check in the file small_groups.php and could not the solution …
 * The problem seems to be in line ..
 *     ```
       if($leaders)
       	    {//leaders available
       		$curr_leaders=unserialize($data->leader);
       		echo'<p><label>'.__('Leader','church-admin').'</label>';
       		echo'<select name="leader1">';
       		foreach($leaders AS $leader)
       		{
       		    echo'<option value="'.$leader->people_id.'" ';
       		    selected($curr_leaders[1],$leader->people_id);
       		    echo' >'.$leader->leader.'</option>';
       		}
       		echo'</select></p>';
       		echo'<p><label>Leader</label>';
       		echo'<select name="leader2">';
       		echo'<option value="">'.__('Second Leader','church-admin').'</option>';
       		foreach($leaders AS $leader)
       		{
       		    echo'<option value="'.$leader->people_id.'" ';
       		    selected($curr_leaders[2],$leader->people_id);
       		    echo' >'.$leader->leader.'</option>';
       		}
       		echo'</select></p>';
       	    }//leaders available
       ```
   
 * Grateful for a solution …
 * hug
 * [http://wordpress.org/extend/plugins/church-admin/](http://wordpress.org/extend/plugins/church-admin/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [andy_moyle](https://wordpress.org/support/users/andy_moyle/)
 * (@andy_moyle)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/edit-small-groups/#post-3916919)
 * Thanks for pointing out a bug – which is now fixed
    It was also pointed out on
   [http://www.themoyles.co.uk/web-development/plugin-support/](http://www.themoyles.co.uk/web-development/plugin-support/)

Viewing 1 replies (of 1 total)

The topic ‘Edit Small Groups’ is closed to new replies.

 * ![](https://ps.w.org/church-admin/assets/icon-256x256.png?rev=2531228)
 * [Church Admin](https://wordpress.org/plugins/church-admin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/church-admin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/church-admin/)
 * [Active Topics](https://wordpress.org/support/plugin/church-admin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/church-admin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/church-admin/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [andy_moyle](https://wordpress.org/support/users/andy_moyle/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/edit-small-groups/#post-3916919)
 * Status: resolved