WordPress.org

Ready to get started?Download WordPress

Forums

Drop down menu with list_pages (1 post)

  1. rusticated
    Member
    Posted 3 years ago #

    I'm looking to create a dropdown menu (as in a <select> menu) with a list of pages from the current hierarchy level. At present I've got it in an unordered list using list_pages (see http://is.quotebox.org/sports/football/villarreal/ ) but can't seem to utilise that function to create a select dropdown menu instead.

    The code I'm currently utilising can be found here:
    http://pastebin.com/ZmRYRdgS

    Is there any way for the code list_pages generates to be changed, to output option tags instead of the usual li tags, and to strip out any other unnecessary classes?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic