Last active
August 29, 2015 14:05
-
-
Save fjarrett/f2741443be47278bed26 to your computer and use it in GitHub Desktop.
Generic comments template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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