Im trying to get the id of images from a post. i’ve tried with
wp_get_attachment_url( $id ) and some other options but always get an empty array when i do var_dump or print_r. Whats the correct way to do it? thanks.
Read more here: Get the id of all images in a post