I am creating a theme options page for my WordPress theme, and I would like to have functionality to select multiple items from a list.
The "use one option" that I use looks like this: http://pastie.org/684800 and it works great.
I am new to PHP, so I tried to modify the above code to achieve the result I want. Here is what I came up with: pastie.org/684804. As you can see, I basically added some html values multiple="yes", hoping it will work;)
The code displays the selection item correctly, but it seems to save only the last selection. Can someone please give some advice on how to achieve the preservation of several selected items?
source
share