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();

and the html output is like

<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’ve been looking at this for the past hour and I can’t think how, I know it’s easy but I think i’m in one of those ruts at the mo and need a break.

Read more here: wp_page_menu(); drop down list in wordpress admin 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: