Displaying comments with a walker: how to distinguish between parent and child comments May 19, 2022 by Tarik Billa Just use the $depth arg: if ( $depth ) { // it's a child comment } else { // it's a parent comment }