Skip to content

Instantly share code, notes, and snippets.

@fjarrett
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fjarrett/f2741443be47278bed26 to your computer and use it in GitHub Desktop.
Save fjarrett/f2741443be47278bed26 to your computer and use it in GitHub Desktop.
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