CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
PHP Problems
wp_list_pages question
chad86
Permalink to comment
#
March 2009
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
davesgonebananas
Permalink to comment
#
March 2009
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.
Add a Comment
Thanks
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.