Skip to content

Instantly share code, notes, and snippets.

View cannap's full-sized avatar
💥
Working from home

Marko Bolliger cannap

💥
Working from home
View GitHub Profile
<?php /* Template Name: Blog Template */ ?>
<?php get_header(); ?>
<?php the_content(); ?>
<?php get_footer(); ?>
<?php /* Template Name: Blog Template */ ?>
<?php get_header(); ?>
<?php the_content(); ?>
<?php get_footer(); ?>
some html
@cannap
cannap / wp-comment-walker.php
Created September 7, 2017 11:23 — 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">