No Runny Eggs

The repository of one hard-boiled egg from the south suburbs of Milwaukee, Wisconsin (and the occassional guest-blogger). The ramblings within may or may not offend, shock and awe you, but they are what I (or my guest-bloggers) think.

Customizing comment output in WP 2.7

by @ 19:46 on December 8, 2008. Tags:
Filed under The Blog.

One of the big things with WP 2.7 is paginated and threaded comments. That is great; however, there is one problem. The code masters had to create a new method of calling comments to get that, and as a result, I had been less-than-impressed with how WP 2.7 had been handling comment meta data (the “who” and “when”), and hacking the core was less-than-satisfactory. Instead of displaying my custom “…said on…/…pinged back on…with/…tracked back on…with”, it had a very ugly “…says:” with the when on a separate line.

Fortunately, Jeremy Clark found a way to allow customized comment meta data. The very-short version:

– Create a function in the theme’s functions.php that recreates, using the pre-WP 2.7 method, the customized styling. Don’t forget to add the new “reply” code, and don’t forget to save.
– Edit the “wp_list_comments” in the comments.php file to create a callback to that new function.

Thanks Jeremy. My one big complaint with WP 2.7 has been worked around. I can’t wait for it to hit public consumption.

As a side note; I’ve also done some further hacking of the Journalized 2.7.1 theme to get the threaded comments display the way I like it.

The URI to TrackBack this entry is:

One Response to “Customizing comment output in WP 2.7”

Leave a Reply

[No Runny Eggs is proudly powered by WordPress.]