Viewing 1 replies (of 1 total)
  • Hi there,

    FYI, in general Featured images are not part of the comment itself by default, unless there is a detail about comments or a new feature that we are missing.

    However, if you are using a third-party plugin for that purpose or you simply wish to render the Featured image of the post where the comment is attached to, then you need to customise the output of the comment. This is possible via the following hooks:
    – decent_comments_comment_output
    – decent_comments_comments_output
    Both hook descriptions can be found in the plugin documentation for your reference:
    https://docs.itthinx.com/document/decent-comments/api/

    Also, for the latter case you might find useful the function get_comment(…) that returns a WP_Comment object which includes the post where the comment is attached to.

    Kind regards,
    George

Viewing 1 replies (of 1 total)
  • The topic ‘Featured images’ is closed to new replies.