Guest User

Untitled

a guest
Apr 21st, 2015
258
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. function get_comments() {
  2. $buffy = '';
  3.  
  4.  
  5. $num_comments = get_comments_number($this->post->ID); // get_comments_number returns only a numeric value
  6.  
  7. if ( comments_open() ) {
  8. if ($num_comments >= 1) {
  9. if (td_util::get_option('tds_p_show_comments') != 'hide') {
  10. $buffy .= '<div class="td-module-comments">';
  11. $buffy .= '<a href="' . get_comments_link($this->post->ID) . '">';
  12. $buffy .= $num_comments;
  13. $buffy .= '</a>';
  14. $buffy .= '</div>';
  15. }
  16. }
  17. }
  18.  
  19. return $buffy;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment