comments count advanced
-
HI there,
Awesome plugin!So I modified the catlist.php to show instead of:
public function get_comments_count($single){ if (isset($this->params['comments']) && $this->params['comments'] == 'yes'): return ' (' . $single->comment_count . ')'; else: return null; endif; }
it does:
public function get_comments_count($single){ if (isset($this->params['comments']) && $this->params['comments'] == 'yes'): return ' <a href="' . get_permalink($single->ID) . "$lcp_more" . '">' . $single->comment_count . ' Comment(s)' . '</a>'; else: return null; endif; }
So instead of getting a simple (1), I get 1 Comment(s) and a link to the page.
Is there a way to add another option so I dont have to add the (s) at the end? So no comments reades 0 comments, 1 comment reads 1 Comment and more than one comment will read 2 comments?
Thanks!!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘comments count advanced’ is closed to new replies.