Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <?php
  2. // If comments are open or we have at least one comment, load up the comment template.
  3. if ( comments_open() || get_comments_number() ) :
  4. comments_template();
  5. endif;
  6. ?>
  7.  
  8. <?php wp_list_comments( array(
  9. 'depth' => '2',
  10. 'callback' => 'better_comments'
  11. ) ); ?>
  12.  
  13. <?php
  14. // . Better Comments
  15. // . ===============
  16.  
  17. function better_comments( $comment, $args, $depth ) {
  18. global $post;
  19. $author_id = $post->post_author;
  20. $GLOBALS['comment'] = $comment;
  21. switch ( $comment->comment_type ) :
  22. case 'pingback' :
  23. case 'trackback' :
  24. ?>
  25.  
  26. <li id="comment-<?php comment_ID(); ?>" <?php comment_class(); ?>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement