Skip to content

Instantly share code, notes, and snippets.

@pdewouters
Created April 15, 2014 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdewouters/10738553 to your computer and use it in GitHub Desktop.
Save pdewouters/10738553 to your computer and use it in GitHub Desktop.
filedmanager group with a repeatable field
public function init() {
$fm = new Fieldmanager_Group( array(
'name' => 'fs_team_fields',
'children' => array(
'fs_ad_module' => new Fieldmanager_TextArea( 'Hello' ),
'repeatabletext' => new Fieldmanager_Textfield( 'Goodbye', array(
'limit' => 0,
'add_more_label' => 'Add another field',
'sortable' => true,
'label' => 'Text Field'
) )
)
) );
$fm->add_meta_box( 'Single-Level Group', 'fs_team' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment