All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

wp_list_pages question

  • # March 2, 2009 at 7:42 pm

    Is there a way to just list the pages as a list without not being wrapped in an anchor link? Customer is looking for the parent pages not link to anything but the children in the drop down actually be links.

    Thanks

    # March 3, 2009 at 4:50 pm

    There is no way using wp_list_pages() as this always produces a list of links.

    You could try get_pages() as this allows you to do whatever you like with the list. It does require a little more work however.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed