Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $repeater_fields[] = $options_panel->addImage( 'image_field_id',
- array(
- 'name'=> 'My Image ',
- 'desc'=> '',
- ),
- true
- );
- $repeater_fields[] = $options_panel->addImage( 'image_field_id2',
- array(
- 'name'=> 'My Image ',
- 'desc'=> '',
- ),
- true
- );
- /* Then just add the fields to the repeater block */
- $options_panel->addRepeaterBlock( 're_',
- array(
- 'sortable' => true,
- 'inline' => true,
- 'name' => 'This is a Repeater Block',
- 'desc'=> '',
- 'fields' => $repeater_fields
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement