I’m trying to create a drop down list for my pages in the wordpress admin page, I can display the pages using

wp_page_menu();

but the output is a list, see below.

<div class="menu">
  <ul>
    <li><a href="http://www.blahblah.com/">Home</a></li>
    <li class="page_item page-item-2"><a href="http://www.blahblah.com/?page_id=2">Page 1</a></li>
    <li class="page_item page-item-9"><a href="http://www.blahblah.com/?page_id=9">page 2</a></li>
  </ul>
</div>

I need it as a drop down list but I can’t figure out how?

Read more here: Use wp_page_menu(); to populate a drop down menu in a wordpress admin themes page


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , , , , ,

Wordpress related questions and answers: