Populate meta select box with child pages

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.

Read More

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?

Related posts

Leave a Reply

1 comment