I’m trying to populate a drop down select meta box with a list of child pages of that page.
I am using the wp_list_pages function to retrieve the list of child pages, no problem there.
The problem is that the list is return as li items. What is the best way to get these into an <option>
format suitable for a dropdown box?
Not sure what you mean by “drop down select meta box”, so maybe I’m way off, but there is a wp_dropdown_pages function that does that.