Skip to content

Instantly share code, notes, and snippets.

@fjarrett
Last active Aug 29, 2015
Embed
What would you like to do?
Generic comments template
<?php
if ( post_password_required() ) {
return;
}
?>
<div id="comments">
<?php if ( have_comments() ) : ?>
<h3><?php printf( _nx( '1 Comment', '%1$s Comments', get_comments_number(), 'comments title' ), number_format_i18n( get_comments_number() ) ) ?></h3>
<ol id="singlecomments" class="commentlist">
<?php
wp_list_comments(
array(
'style' => 'ul',
'short_ping' => true,
'avatar_size' => 70
)
);
?>
</ol>
<?php endif; ?>
<?php comment_form() ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment