What you get is fine, it’s the image id, now you just need to loop them and output the structure that you want, for example.
if (!empty($images = get_comment_meta( $comment->comment_ID , 'reviews-images', true ))) {
foreach ($images as $image_id) {
$image_src = wp_get_attachment_image_src($image_id, 'full');
// Now you have the image src, $image_src, you can do what ever you want here
}
}
Related Posts:
- WordPress comment count to include attachment comments
- Get comment content by comment ID
- Exclude child comments in get_comments() or WP_Comment_Query?
- How can I get a list of comments by target
- How to sort posts by the average of comment meta values
- How to get a value from comment meta
- Add an attachment feature to comments
- how to SELECT for the current post id?
- how show attachment image in comments query
- Comment Table Size Results in Slow Page Loads and 500 Errors
- Sort post by last commented
- db query for retrieving comments without any reply
- Query comments with non-empty ‘author_url’ value on Admin Comments Screen
- Restrict users to see only own comments and the post author’s replies
- Approve comment hook?
- How to get comments by post ID?
- Custom comment type based on thread level
- How to add internal, revision comments to page updates
- Comment Reply javascript
- Hook to edit an column on comments screen?
- Comment Author Name In Reply Form
- Disable slow media queries?
- Is there any advantage to emptying comment spam?
- how to make author to write comment on only his own posts?
- How do you remove the ability for a user to make a comment or post on a page?
- Twitter/Facebook login for comments [closed]
- Add delete, approve, spam Links to Comments
- FB – Comment Moderation Tool bug or error in the code?
- If new comment posted in custom post – send notification to custom email from custom field
- Disable Admin account being emailed for comment notification
- How to allow commentetors to get notifications on replies to their comments?
- Can I have two single.php files and have one display just the post and the other display comments for that specific post?
- How can I change the link in comment form “Log in to post a comment”?
- remove_filter( ‘comment_author’, ‘floated_admin_avatar’ ); doesn’t work
- Does wp_new_comment expect a comment in HTML?
- Comments: Approve when admin Replies, from the Front end
- Show only if x comments?
- Display WordPress commenter nice name
- Ajax comments not working
- Changing the comments link produced by the get_comments_link() and get_comments_pagenum_link() functions
- How to display nothing (instead default) when no user gravatar is present?
- Redirect to page 2 after comment
- How to change avatar of the comment author using comment ID?
- WordPress Comments are automatically publishing
- save_post action hook for comments
- Automatically increase comment karma on comment save
- How to handle upvotes and downvotes of disqus comments after importing disqus comments to wordpress?
- All users/comments suspected as bot? [closed]
- Count comment threads, not total comments in a post
- Show comments of a user post only when they are login
- comments in Admin
- How to get and use the the number of days since the last comment?
- Get all child comments ids from parent comment id
- How do I add class to an admin comment?
- How can get comment link by comment id?
- How to amend time format of comments, using child-theme?
- Why there is still an approved comment after deleting all?
- Get comment id of the individual comments in comment list when modifying comment posted using comment text filter
- Custom comment field not showing when logged-in
- get_comment_meta not behaving as expected
- comments_popup_link() – how to load different classes/images according to different comment condition?
- get_comment_author_link not working properly
- How do I get a array, with the right order of the nested comments?
- disable reply comments on depth equals 2
- Display last comments on home page
- How to show last comment on hover?
- Users moderate own comments
- Clicking Comment “Reply” Button only replies to first comment
- show comment with statuse
- Critical error – can’t post comments
- How to add code for wp-comments-post.php over functions.php?
- Is there a way to export WordPress comments to a non-wordpress, HTML coded site?
- comment form code redirect to wp_comments_post.php with blank page
- Parent comment’s author display_name
- How to show a list of comments on home page from all posts?
- WordPress Custom Local Avatar not showing in comments
- Change commenters email to display name
- Remove text on Comment count
- wp list all users who haven’t commented on a post
- Attachment page tag queries & posts not found
- Creating a “walled garden” of comments
- Adding buttons to wp-admin/edit-comments
- How Can I display the Current Logged-In User’s Comment at the Top of the Comments Section in WordPress?
- How to enable reply button on mostly deeply-nested comments? [closed]
- Comments closed only for contributors
- Comment-Meta doesn’t work with latest wordpress update
- Listing comment author role code problem
- How to allow special characters in comment name?
- Deleting users do not deletes coments
- Problem display only posts with comments
- Migrate comments to Disqus
- Where to insert get_comments?
- Overflow and Comments
- Is there a plugin that can replace WP comments with Facebook comments as used by TechCrunch? [closed]
- list / show comments of post author in special page
- How to use Disqus for some categories, and FB comments for others?
- Why nobody is answering my question? [closed]
- Replace Entire Comment Box with Text
- comment_approved custom value
- Add pending for reply comment in console WordPress