8

Custom walkers seem to be a poorly-documented area of WP. Online tutorials focus on styling the output, not on directing the walker to go where you want it.

I am reading the code, but I wonder if there's a good resource I'm missing. If you know about walkers, how and where did you learn about them?

3
  • 2
    I learned how to do a huge amount mainly by reading the code base. There were some articles I started with and then quickly realised how much more I could do with them. Is there something in particular you're hoping to achieve? Commented Dec 5, 2011 at 15:11
  • 2
    In the past I attempted to build a menu from taxonomies, which resulted in my asking this question: wordpress.stackexchange.com/questions/34011/…. I've made some progress since then. But I could definitely benefit from a good book or an article.
    – djb
    Commented Dec 5, 2011 at 15:44
  • you're right that part is poorly documented. i've looked at source and it isn't really that revelatory. Commented Jan 16, 2012 at 18:04

1 Answer 1

3

I stumbled across this article, I think it could be of tremendous use to you. It helped me understand it a lot better.

I believe there was a question on here in which (I think) @Rarst answered that linked to it, but I can't seem to find it. If someone can find it and edit my answer in place of this that would be great!

EDIT: Found another pretty good resource you can find here.

EDIT: More excellent resources below you can look through. I made the ones that are extremely useful in my opinion bold!

2
  • +1. Thank you. This goes some way to answering the question of how to make the per-post output richer. But it doesn't touch on how the walker chooses which posts to get its material from, so I cannot accept it as the answer to the above Q.
    – djb
    Commented Jan 25, 2012 at 0:11
  • @djb No problem, I am also interested in learning more about the Walker Class and I am more than happy to help/brainstorm. I'm going to continuously update this answer with more articles and resources for future visitors. I added some more above if you didn't see yet! :)
    – Jared
    Commented Jan 25, 2012 at 3:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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