Title: comments count  advanced
Last modified: August 21, 2016

---

# comments count advanced

 *  [Juan Pablo Gomez](https://wordpress.org/support/users/sampsjp/)
 * (@sampsjp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/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 . '&nbsp;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 comment**s**?
 * Thanks!!
 * [http://wordpress.org/plugins/list-category-posts/](http://wordpress.org/plugins/list-category-posts/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Fernando Briano](https://wordpress.org/support/users/fernandobt/)
 * (@fernandobt)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/comments-count-advanced/#post-4427709)
 * I’ll look into this and see if I can release a new version with this functionality
   soon. Thanks!
 *  Thread Starter [Juan Pablo Gomez](https://wordpress.org/support/users/sampsjp/)
 * (@sampsjp)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/comments-count-advanced/#post-4427748)
 * Thanks!!!!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘comments count advanced’ is closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Juan Pablo Gomez](https://wordpress.org/support/users/sampsjp/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/comments-count-advanced/#post-4427748)
 * Status: not resolved