30 Responses

  1. Mayur Somani
    Mayur Somani November 11, 2008 at 1:30 am | | Reply

    Thanks a lot for the information. It does simplifies some of the work.

  2. Nathan Rice
    Nathan Rice November 11, 2008 at 9:41 am | | Reply

    Dude, you’re starting to freak me out! :-)

    This is exactly what I did in the new theme I’m working on. The only difference is that I did a function check for wp_page_menu and if it doesn’t exist, I create it, and let it accept the arguments as normal. I then parse the arguments and create a page menu based on the arguments (menu class, show home, etc.) using wp_list_pages.

    Very cool stuff. I’ll probably write up a tutorial on how I did the backward compatibility sometime soon.

    Good stuff, Justin. Keep it coming!
    Nathan

  3. J Mehmett
    J Mehmett November 11, 2008 at 11:22 am | | Reply

    Yet another nice tip, man. Thanks for sharing.

    WordPress is becoming more easier saving time. This is ‘write less, do more’.

  4. Lyndi
    Lyndi November 11, 2008 at 12:43 pm | | Reply

    Somehow I missed this one. Very handy. Thanks for the info. Backwards compatibility on some of the other new functions could be tricky as well.

  5. Jauhari
    Jauhari November 16, 2008 at 10:15 pm | | Reply

    Wow, this is what I looking for. Thanks justin

  6. Lyndi
    Lyndi November 22, 2008 at 1:49 pm | | Reply

    Justin, just a quick question please. Is it possible to add a ‘site-admin’ link to the end of the menu generated with this function?

  7. Carrigaline Educate Together
    Carrigaline Educate Together December 1, 2008 at 10:21 am | | Reply

    Is there any chance that wp_dropdown_pages() can use the show_home option? In the last reply you mention taking on a link to the output of wp_list_pages()…are there examples available showing how to do that? Thanks,
    Ralph

  8. Sarah
    Sarah December 22, 2008 at 4:30 am | | Reply

    Just found this one.
    Great! Thanks so much :)

  9. Alex
    Alex December 31, 2008 at 9:47 am | | Reply

    Thanks for the info. I was looking for an easier way to do this :)

    Oh, and I like the way your posts read. Things are always where I expect to find them. Nice work.

  10. Lance
    Lance March 18, 2009 at 11:30 am | | Reply

    Any way to remove a particular page with this?

    Thanks.

  11. Keiy
    Keiy June 22, 2009 at 4:29 am | | Reply

    Thanks for the tutorial, this time I’m looking for this actually for my new blog.

    Thanks once more.

  12. Wordpress Directory
    Wordpress Directory July 24, 2009 at 9:58 am | | Reply

    same here, any way to remove a page from the menu? I can’t imagine that they would have left that ability out.

  13. norman
    norman November 18, 2011 at 11:01 am | | Reply

    Great article. So basically if im converting a site from html to wordpress, all I have to do is create the dropdown menu with css and get it to look the way I want it in html, then just use the above code where i want the menu to appear, and my css will make it work and look like in the html? Is this correct? its that simple?

    Norman

Leave a Reply

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/Web site in attribution.

Please use your real name or a pseudonym (i.e., pen name, alias, nom de plume) when commenting. If you add your site name, company name, or something completely random, I'll likely change it to whatever I want.