Differentiate comments and replies with php
In a theme I’m working on I wanted the text on comment replies to change from “comment author says” to “comment author replies” and by adding this piece of code in “…theme-folder/functions.php” I achieved it:
if ($depth == 1):
//if it's a primary comment, do this
_e('says', 'blank');
else:
//if it's a comment reply, do this instead
_e('replies', 'blank');
endif;
Quick, easy and neat, just the way we like our code!
I’m still a raging noob when it comes to php, but I’m getting better. I’m quite proud that I figured this on out on my own…! *lol*)



