1

I've got my plugin options set up to be in multiple sections, for ease of use and more efficient database calls. However, since reorganizing my Options page I can only seem so save changes made in the last section. No changes I make to earlier sections take effect.

The code for the admin options page is here: https://github.com/cconover/wp-author-customization/blob/master/author-customization/admin/author-customization-admin.php

Here's a screenshot of the Options page: enter image description here

I'm sure the answer is staring me in the face, but I need some help looking in the right place.

2
  • Try dividing them into tabs. Can't remember where I've seen this. But remembered the a tutsplus tutorial on Settings API shed some light on it - to save their data, dividing them into tabs works. – Mayeenul Islam Dec 11 '13 at 8:08
  • Have you read Settings API with arrays example? – fuxia Dec 11 '13 at 12:09
1

I figured it out. I needed to have a single value for $option_group across all register_settings and settings_fields. It's working now.

1
  • Woken from dead, but really helpful. – EnterSB May 31 '16 at 8:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.