WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Widget (3 posts)

  1. faoliveira
    Member
    Posted 1 year ago #

    I have this widget that shows the latest comments http://pastebin.com/C6Kqa6yp

    On line 69 i wanna to show only the excerpt, but if i put <?php comment_excerpt( $comment_ID ); ?> doesn't work, shows the excerpt of comments all equal in widget.

    Please, someone can help? Thanks

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    http://codex.wordpress.org/Function_Reference/comment_excerpt

    try:

    <?php comment_excerpt( $comment->comment_ID ); ?>

  3. faoliveira
    Member
    Posted 1 year ago #

    It really works. Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic