Hi, I'm trying to display parent pages and subpages in a single combo box. tried finding code or plugins but couldn't find anything.I'm trying to get the structure to be like this: <select> <optgroup>Parent page 1 <option>subpage1</option> <option>subpage2</option> <option>subpage3</option> </optgroup> <optgroup>Parent page 2 <option>subpage1</option> <option>subpage2</option> <option>subpage3</option> </optgroup> </select> also, i would like the ability to exclude some pages/ sub pages from this list. I tried doing something with wp_list_pages(); but it gives output in ul li only... can someone please help me out??