Skip to content

Instantly share code, notes, and snippets.

@devinsays
Created November 18, 2014 22:01
Show Gist options
  • Save devinsays/39ffd1268e336ec9a582 to your computer and use it in GitHub Desktop.
Save devinsays/39ffd1268e336ec9a582 to your computer and use it in GitHub Desktop.
<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
<nav id="comment-nav-above" class="pagination comment-pagination" role="navigation">
<h1 class="screen-reader-text"><?php _e( 'Comment navigation', 'cascade' ); ?></h1>
<span class="page-numbers"><?php printf( __( 'Page %1$s of %2$s', 'cascade' ), ( get_query_var( 'cpage' ) ? absint( get_query_var( 'cpage' ) ) : 1 ), get_comment_pages_count() ); ?></span>
<?php paginate_comments_links(); ?>
</nav><!-- .comment-navigation -->
<?php endif; // check for comment navigation ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment