Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

up vote 0 down vote accepted
wp_list_categories()

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
add comment

Your Answer

 
discard

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.