Skip to content

Instantly share code, notes, and snippets.

@dshanske
Created February 4, 2016 03:51
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 dshanske/98d0bd64c18de43d4782 to your computer and use it in GitHub Desktop.
Save dshanske/98d0bd64c18de43d4782 to your computer and use it in GitHub Desktop.
<?php if ( ! empty( $comments_by_type['webmention'] ) ) { ?>
<div id="mentionlist-container" class="comment-tab">
<ol class="mentionlist">
<?php // not calling wp_list_comments twice, as it breaks pagination
$pings = $comments_by_type['webmention'];
foreach ($pings as $comment) { ?>
<li class="ping">
<?php get_avatar($comment); ?>
<div class="ping-meta"><?php comment_date( get_option( 'date_format' ), $comment ); ?></div>
<div class="ping-content"><?php comment_text($comment); ?></div>
</li>
<?php } ?>
</ol><!--/.pinglist-->
</div>
<?php } ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment