Skip to content

Instantly share code, notes, and snippets.

@UlisesGascon
Forked from igmoweb/basic-comments.php
Last active August 29, 2015 14:22
Show Gist options
  • Save UlisesGascon/863c9ee8b29190bbd70c to your computer and use it in GitHub Desktop.
Save UlisesGascon/863c9ee8b29190bbd70c to your computer and use it in GitHub Desktop.
<?php
if ( post_password_required() )
return;
?>
<div id="comments" class="comments-area">
<?php if ( comments_open() && get_comments_number() ): ?>
<?php if ( have_comments() ) : ?>
<ul class="commentlist">
<?php wp_list_comments(); ?>
</ul>
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<nav class="comment-navigation">
<div class="nav-previous"><?php previous_comments_link(); ?></div>
<div class="nav-next"><?php next_comments_link(); ?></div>
</nav>
<?php endif; ?>
<?php endif; ?>
<?php comment_form(); ?>
<?php endif; ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment