Title: Retrieve comment image using get_comments($args)
Last modified: March 8, 2017

---

# Retrieve comment image using get_comments($args)

 *  Resolved [renrin](https://wordpress.org/support/users/renrin/)
 * (@renrin)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/retrieve-comment-image-using-get_commentsargs/)
 * How to retrieve the image uploaded in the comment. Is there a parameter for this
   using the get_comments($args)? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [renrin](https://wordpress.org/support/users/renrin/)
 * (@renrin)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/retrieve-comment-image-using-get_commentsargs/#post-8888591)
 * Sorry. I mean a return value for image if I use get_comments($args) to retrieve
   comments. Thanks
 *  Plugin Author [WP Puzzle](https://wordpress.org/support/users/wppuzzle/)
 * (@wppuzzle)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/retrieve-comment-image-using-get_commentsargs/#post-8893022)
 * [@renrin](https://wordpress.org/support/users/renrin/),
 * I am not sure what exactly needed… Maybe it will be helpful for You.
 * get all comments with attached images:
 *     ```
       $comments = get_comments( array(
            'meta_key' => 'comment_image_reloaded',
       ));
       ```
   
 * get image attachment ID for comment with id 45:
 *     ```
       $comment_ID = 45;
       $img_id = get_comment_meta( $comment_ID,'comment_image_reloaded' );
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Retrieve comment image using get_comments($args)’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/comment-images-reloaded_81b5c0.svg)
 * [Comment Images Reloaded](https://wordpress.org/plugins/comment-images-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/comment-images-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/comment-images-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/comment-images-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/comment-images-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/comment-images-reloaded/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [WP Puzzle](https://wordpress.org/support/users/wppuzzle/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/retrieve-comment-image-using-get_commentsargs/#post-8893022)
 * Status: resolved