Skip to content

Instantly share code, notes, and snippets.

View jjmpsp's full-sized avatar
💭
Working on a new personal website

Joel Murphy jjmpsp

💭
Working on a new personal website
View GitHub Profile
@jjmpsp
jjmpsp / wp-comment-walker
Created December 18, 2015 16:18 — forked from georgiecel/wp-comment-walker
Custom comment walker for HTML5 friendly WordPress comment and threaded replies. To be inserted in functions.php.
<?php
class comment_walker extends Walker_Comment {
var $tree_type = 'comment';
var $db_fields = array( 'parent' => 'comment_parent', 'id' => 'comment_ID' );
// constructor – wrapper for the comments list
function __construct() { ?>
<section class="comments-list">
Test
> Written with [StackEdit](https://stackedit.io/).