WordPress.org

Support

Support » How-To and Troubleshooting » $withcomments, limit to only 3 comments?

$withcomments, limit to only 3 comments?

  • Hi!

    I am using this code to show comments on my indexpage but this code outputs all the comments, i would love if the code could fetch the 3 latest comments in a post, is this possible?

    <?php
      global $withcomments;
      $withcomments = true;
      comments_template("/inline_comments.php");
    ?>
  • The topic ‘$withcomments, limit to only 3 comments?’ is closed to new replies.
Skip to toolbar