WordPress.org

Ready to get started?Download WordPress

Forums

$withcomments, limit to only 3 comments? (1 post)

  1. JesperA
    Member
    Posted 4 years ago #

    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");
    ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.