Skip to content
Twig Field Finder
Theme

Comments — last comment date / author

Fill in your field name

Italic values are placeholders: replace them with your own machine names, or let the builder do it.

Reads the entity directly, before field formatters run.

  1. Snippet 1
    {{ node.field_name.last_comment_timestamp|format_date('medium') }}
  2. Snippet 2
    {{ node.field_name.last_comment_name }}

Gotcha

Comment statistics are stored on the field item, so these work without loading any comment.