0

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

<?php
    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?

2
  • @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

0

Browse other questions tagged or ask your own question.