is it possible to have two settings fields in one form?

    echo '<form method="post" action="options.php">';
    settings_fields( 'my-plugin-settings-group-1' );
    settings_fields( 'my-plugin-settings-group-2' );

I tried it but it doesn't work, only one settings_fields is saved.

any ideas or other solutions?

  • @ialocin I'm already aware of that, but my settings have a kind of complicated structure, so I prefer to avoid this.
    – Omar Abid
    Feb 3, 2014 at 11:09
  • 2
    Avoid what? The settings API?
    – fuxia
    Feb 3, 2014 at 13:05


Browse other questions tagged or ask your own question.