WordPress Settings API: saving multiple rows of similar data

I’ve been experimenting with the plugin options starter kit but can’t find a way to save multiple rows of similar data using the Settings API. Example of what I’m trying to save:

_________________________________________
|____Order#____|___Image URL___|_Enabled_|
|      1       |   http://...  |    Y    |
|      2       |   http://...  |    N    |
........

Can this be generated and saved using just one register_setting? I can’t work out how this would be done, especially with the format of the data being saved to the database.

Read More

Thanks,
Alex

Related posts

Leave a Reply

2 comments

  1. These are the best two articles i’ve read(i’m sure there are others to) on creating multiple options using the Settings API, one covers usage inside a theme and the other inside a plugin, but essentially both actuall cover doing the same thing(registering a page and having some savable fields inside that page).

    Both have a few pieces here and there i don’t agree with, i can’t recall specifically what, but it’s the nature of writing code, you’re not always going to agree with the way certain coders approach particular things. I don’t have time to run over them now and pick out what i’d do different, but both are still very good examples of how to use the API.

    Hope that helps.

  2. I have the same question myself and none of those two articles seem to answer the question.

    Seems like a custom database is the only way to go ?