query – How to get comment images stored as serialized comment meta
Question
I want to display images under for each comment but images store in database as serialized a:3:{i:0;i:775;i:1;i:776;i:2;i:777;}
I wrote this code
print_r (get_comment_meta( $comment->comment_ID , 'reviews-images', true ));
but it outputs this *
Array ( [0] => 778 [1] => 779 [2] => 780 [3] => 781 [4] => 782 ) 10
then I tried this
echo get_comment_meta( $comment->comment_ID, 'reviews-images', true );
not worked . Please help how can I get image urls instead of this output
0
5 days
2022-05-14T09:00:31-05:00
2022-05-14T09:00:31-05:00 0 Answers
0 views
0
Leave an answer