you can easily do this the same way as wp_list_pages()
, using wp_dropdown_pages()
.
the args needed to retrieve the pages are the same.
for the categories, use wp_dropdown_categories()
you can easily do this the same way as wp_list_pages()
, using wp_dropdown_pages()
.
the args needed to retrieve the pages are the same.
for the categories, use wp_dropdown_categories()