Posted By

lassemahn on 03/06/10


Tagged

wordpress comments


Versions (?)

check if comments wordpress


 / Published in: PHP
 

  1. <?php
  2. if (get_comments_number()==0) {
  3. // post has no comments
  4. } else {
  5. // post has comments
  6. }
  7. ?>

Report this snippet  

You need to login to post a comment.