ok, this is how it could be done, if you can tell me where I would “add a button” for the group
presently a repeatable group assignment looks like this:
$group_field_id = $cmb->add_field( array(
'id' => 'MMDListsRecord',
'type' => 'group',
'description' => __( 'Individual Directory Listings', 'mmd' ),
'options' => array(
'group_title' => __( 'Record {#}', 'mmd' ), // since version 1.1.4, {#} gets replaced by row number
'add_button' => __( 'Add Another Record', 'mmd' ),
'remove_button' => __( 'Remove Record', 'mmd' ),
'sortable' => true,
'closed' => true,
),
'after_group' => 'mmdlist_add_js_for_repeatable_titles',
) );
What I would like to do is add 2 buttons like this:
$group_field_id = $cmb->add_field( array(
'id' => 'MMDListsRecord',
'type' => 'group',
'description' => __( 'Individual Directory Listings', 'mmd' ),
'options' => array(
'group_title' => __( 'Record {#}', 'mmd' ), // since version 1.1.4, {#} gets replaced by row number
'add_button' => __( 'Add Another Record', 'mmd' ),
'prev_button' => __( 'Previous Records', 'mmd' ), <===== ****
'next_button' => __( 'Next Records', 'mmd' ), <===== ****
'remove_button' => __( 'Remove Record', 'mmd' ),
'sortable' => true,
'closed' => true,
),
'after_group' => 'mmdlist_add_js_for_repeatable_titles',
) );
This way I can only load say 10 records at a time and thus save the massive amount of browser memory and more importantly the SLOWWWWWWW on the backend. Yes, it is a LOT of data I am pushing around. This would solve the problem.