WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need help creating a Walker for wp_list_categories that filters through taxonomies and actually lists the pages at the end element.

I'm completely lost on how to go about this. I've successfully implemented a Walker for the wp_list_pages function but that obviously doesn't apply in this case because my wp_list_pages Walker relied on child-parent relationships

Additionally, I'd like to be able to specify which terms I want to return. Basically, I need a list filtered by taxonomy and terms.

share|improve this question
up vote 0 down vote accepted

Would be the way to go for taxonomies. Further functionality can be done either with a custom walker on this function (This seems to be the one resource: http://scribu.net/wordpress/extending-the-category-walker.html)

or write a custom SQL script.

In the end, I went with wp_list_pages and sorted by custom post type where:

post_type => 'custom-post-type'

is listed as an argument.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.