Title: Walker class for comments
Last modified: August 21, 2016

---

# Walker class for comments

 *  Resolved [Luke](https://wordpress.org/support/users/lukejanicke/)
 * (@lukejanicke)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/walker-class-for-comments/)
 * Can anyone point me to any good (and by that I mean slightly “For Dummies”) guides
   on using a walker class for comments?
 * I just started writing a callback function to customize wp_list_comments() and
   I checked the codex where I noticed this…
 * > ‘walker’
   >  ( Walker object ) Provide a custom Walker class object to use when
   > rendering the comments. This is the primary method of customizing comment HTML.
 * Really? The primary method of customizing comment HTML. The Internet doesn’t 
   agree. Mostly.
 * Anyone point me to a good introduction and example?

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/walker-class-for-comments/#post-4531815)
 * Probably should say primary method of customizing comment organization. If you
   wanted to thread by commenter instead of parent, you would change the walker.
   Most people are only interested in the actual comment HTML from the callback,
   so the default walker is just fine.
 * Since the walker calls the callback, in a sense it is the primary method. It’s
   just that we are mostly concerned with only the callback portion. It’s still 
   part of the walker by inheritance.
 * I can’t offer any good references, I’m hoping a little explanation here might
   help you understand what the Codex is trying to say.
 *  Thread Starter [Luke](https://wordpress.org/support/users/lukejanicke/)
 * (@lukejanicke)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/walker-class-for-comments/#post-4531842)
 * That makes more sense. Thanks. Based on that I was happy to stick with customization
   via arguments/filters.

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

The topic ‘Walker class for comments’ is closed to new replies.

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [Walker](https://wordpress.org/support/topic-tag/walker/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [Luke](https://wordpress.org/support/users/lukejanicke/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/walker-class-for-comments/#post-4531842)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
